This is a minimal Arduino project, the components used were:
1 x ATMEGA328
1 x Medium Breadboard
---- Some breadboard jumper wires.
1 x Red LED
1 x 1k Resistor
1 x 100nf ceramic capacitor
1 x FTDI programmer
The completed minimal breadboard Arduino should look like this:
Image by Fritzing software.
The FTDI and LED are optional. The FTDI is used to add new code to the ATMEGA328, while the LED attached to digital pin 13 could be use to test the setup. In order for the FTDI to be able to program the ATMEGA chip a 100nf ceramic capacitor is required, if the capacitor is not there the FTDI wont be able to upload the code to the micro-controller. The Rx from the FTDI is connected to the Tx of the micro-controller and the Tx from the FTDI is connected to the Rx of the micro-controller. The ground and 5+V from the FTDI are connected respectively to the breadboard.
For more information go:
Arduino Sample Codes
Arduino on Breadboard
Simple code for the msp430 launchpad to drive 6 LEDs as if they were traffic lights. The 3 LEDs on the right are BLED, YLED and RLED. The ones on the left are BLED2, YLED2, RLED2. An extra delay has been added when the light changes from red to green to simulate any prevention of accidents due to cars running a red light.
Link for video at higher resolution
Schematic: For the schematic use resistors that matches with the forward voltage and current that LEDs need. Also note that this set up is for the video above. That said the pins are for the Launchpad, if need to be run by just the MSP430 a 47K Resistor needs to be added from the reset to VCC
Schematic made with iCircuit app on Apple iPad
The code is below:
Computer Tech, interest in gaining a greater knowledge about most subjects, specially computer related.