|
|||||||
![]() |
Forum Index > Projects > Micro-readerboard project support | ||
Dev Board Help! Simple Circuit |
|||
| | | Printable Version |
|
Anonymous: JRH53 | ||||||||
|
I recently purchased a Dev. Board and built the simple LED blink circuit Adafruit provided as an example on there website. I have the Dev board being powered by the programmer which is a USBTinyISP from Adafruit and the LED does not blink. I'm just starting out with programming microcontrollers so my skill level is just a beginner. The example code is pasted below. The LED is oriented correctly, I applied an external 5V across the resistor and LED and it lights up. Please help, seems like a simple problem! PHP Formatted Code #define F_CPU 1000000 // by default we have the 1MHz internal oscillator #include <avr/io.h> // this contains all the IO port definitions #include <util/delay.h> int main(void) { DDRB = (1 << 5); // set PORTB5 to an output while (1) { PORTB |= 1 << 5; // turn LED on _delay_ms(100); PORTB &= ~(1 << 5); // turn LED on _delay_ms(100); } }
|
|
||||||||
|
|||||||||
|
Windell | ||||||||
|
Maybe better to post a smaller photo next time. Windell H. Oskay drwho(at)evilmadscientist.com http://www.evilmadscientist.com/ |
![]() Evil Scientist ![]() Status: offline
Registered: 06/15/06 |
||||||||
|
|||||||||
|
Anonymous: JRH53 | ||||||||
|
I'm using the example code from Adafruit http://www.ladyada.net/learn/avr/atmega8-1mhz-blink.zip |
|
||||||||
|
|||||||||
|
Windell | ||||||||
|
I've tried your circuit and it works, along with your code. So, either you aren't programming the chip like you think you are, or the circuit isn't hooked up how you think it is. I suspect the latter. If you have a multimeter, you could use that to verify the connections. Otherwise, solder an LED to a resistor, and touch one pin to the pin of your chip and the other to ground. Windell H. Oskay drwho(at)evilmadscientist.com http://www.evilmadscientist.com/ |
![]() Evil Scientist ![]() Status: offline
Registered: 06/15/06 |
||||||||
|
|||||||||
|
Anonymous: JRH53 | ||||||||
|
Ok, does this screenshot look correct for the programming? |
|
||||||||
|
|||||||||
|
Windell | ||||||||
|
Hmm. I got "206 bytes of flash verified." Windell H. Oskay drwho(at)evilmadscientist.com http://www.evilmadscientist.com/ |
![]() Evil Scientist ![]() Status: offline
Registered: 06/15/06 |
||||||||
|
|||||||||
|
xDGx | ||||||||
|
Hey, I bought that exact kit from adafruit. I have the target board and usbtinyisp ready and working, even got the blinking code to work (btw I got "174 bytes of flash verified" |
![]() Scientist ![]() ![]() Status: offline
Registered: 08/18/09 |
||||||||
|
|||||||||
|
|
| All times are PDT. The time is now 06:54 PM. |
|
|
Octolively
Interactive LED kits
Meggy Jr RGB
LED matrix game
development kit.
Business-card sized
AVR target boards
Peggy 2
LED Pegboard kits