Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: Jaryd on October 31, 2010, 07:45:59 AM

Title: How do i test if my mcu is working?
Post by: Jaryd on October 31, 2010, 07:45:59 AM
How do i test if my mcu is working?
Title: Re: How do i test if my mcu is working?
Post by: waltr on October 31, 2010, 09:03:30 AM
Connect an LED and resistor to a port pin, set the port to an output and write code that blinks the LED by setting the output high for a period of time then low for a period of time.
Title: Re: How do i test if my mcu is working?
Post by: Jaryd on November 04, 2010, 01:43:38 PM
Thaats alittle confusing and i dont have any software yet is there another way??
Title: Re: How do i test if my mcu is working?
Post by: rbtying on November 04, 2010, 05:15:55 PM
You're not going to be able to test it without programming it with SOMETHING.  What MCU is it?  Many come with a "blink" program as a factory setting, so you could try just hooking up Vcc and ground.
Title: Re: How do i test if my mcu is working?
Post by: Jaryd on November 08, 2010, 08:52:59 PM
I built it using the tutorial
Title: Re: How do i test if my mcu is working?
Post by: rbtying on November 08, 2010, 09:24:38 PM
The $50 robot tutorial?  That MCU will need to be flashed with a blink program.  If you didn't do anything to the MCU, and you've kept it in an antistatic bag/grounded yourself before touching it, it should probably be fine.  Take a look at where the ICSP pins connect to - you can probably jury-rig a programmer and flash the chip with a blink program, and then read the output with an LED + resistor or a multimeter.
Title: Re: How do i test if my mcu is working?
Post by: Soeren on November 09, 2010, 05:02:02 AM
Hi,

How do i test if my mcu is working?
Why do you want to test it at all - did you do anything particular evil to it?
Title: Re: How do i test if my mcu is working?
Post by: Jaryd on November 09, 2010, 08:43:55 PM
Well basically I messed up the first one and spent  a lot of time on the second. I never got any farther than that due to my budget and lack of time. I now have alot of time on my hands and just wanted to see if it actually works or not.

Jaryd
Title: Re: How do i test if my mcu is working?
Post by: Jaryd on November 14, 2010, 07:06:54 PM
As of right now Im understanding that I am going to need some software... What software is the up to date version I should use. (if not free cheap!!!!!!!!!!!!)
Title: Re: How do i test if my mcu is working?
Post by: paulstreats on November 15, 2010, 03:59:19 AM
If you built the $50 board according to the instructions then just follow the rest of the instructions. There is already a program in the tutorial for you to download to it. (presumably you already have the hardware programmer in the tutorial. If not then I dont thin that you can achieve anything with it)