A couple of new tools to help in my projects. Firstly some digital calipers:-
Secondly an oscilloscope which I have been needing for a while now:-
This project is simple ATMega based plant watering system. This automatically monitors the soil and water when necessary.
The current prototype is built on a through hole PCB (made at seed studio). There was a couple of issues withe the prototype build. The 74HC595 shift register was wired slight wrong and the display interface had a couple of issues. These have been fixed in the SMD version (I will go and fix up the through whole version).
The moisture sensor uses a couple of nails and the water valve are made from an off the shelf hobby servo and a manual valve. There is also provision for a temperature sensor and using the ICSP and a couple exposed pins it should be possible to add a simple SSD card for logging or ethernet module for networking.
I will post a more complete description in the next couple of days. The circuit,PCB and code is available on github – https://github.com/markmoro/garden_station.
Got a kids ride-in car with no lights or battery indicator? If so this is the project for you.
The goal of this project was to create a simple microcontroller board that will control some indicator lights, hazard lights and battery monitor for the kids ride on car below.
The project uses an ATTiny84 micro controller to control all the lights an monitor the battery level. This can be build on a simple piece of stripboard. Here is the original circuit diagram and stripboard layout. There was a couple of minor change in the final version which we’ll discuss later.
Firtzing was used to create the circuit and stripboard layout. The circuit diagram was created first which caused some issues when trying to layout the stripboard.
The build was started with a breadboard layout of the LEDs and a potentioner to simulate the battery level.
This was connected to a standard Arduino UNO board in order to write the firmware for the ATTiny. The firmware (and circuits) are available from github (https://github.com/markmoro/carelec). The firmware is super simple as its basically blinking some lights so it should be easy for anyone to follow and makes a great introduction to Arduino coding.
Once the firmware was complete it was time to build the ATTiny version. The first thing to do was to write the firmware to the ATTiny. To do this we used the Arduino as an ISP. There is an excellent tutorial on instructables on how to do this here. There were some issues with pin mapping with the Arduino pin numbers. The actual pin numbers are shown in the diagram below:-
Once the stripboard layout was built and the ATTiny programmed the the build into the car can be done.
We soldered the LEDs on to wires and ran them back to the main board were we had header connectors to plug the in to the board. The following section were made:-
We’ve simply taped all the wire runs in the short term but will probably secure them up more in the future.
The majority of this build went pretty smoothly, however there were a couple of issues.
The first issue was that when plugged into the main car battery the ATTiny kept reseting. We had previously tested using a 8 AA cell battery back so the power was the main suspect. A small value capacitor was placed across the ATTiny’s power and this solved the issue. Its important to note this need so be as close to the ATTinys power pins as possible.
The second issue we had was wiring the power on/off to the cars on/off button. The cars on off button seem to have so strange ground wiring (I assume this is for the motor to run back and forward) and it turned out we couldn’t wire the circuit on/off to this. As a simple solution a second switch was added. The main switch could be replaced with a dual-pole version however we will probably not do this.
This blog has been created for me to put my projects online to share with everyone. Most of the projects have an electronic/microcontroller/software theme to them.