Forum Index > Projects > Other projects
 Re: Dev Board Help! Simple Circuit
 |  Printable Version
By: xDGx (offline) on Thursday, April 14 2011 @ 11:41 AM PDT (Read 3025 times)  
xDGx

I just assembled my target board and usbtinyisp and got the blinking led! I can even change the delay and watch it blink at different speeds! Razz
Now I want to make the same LED pulse, just like the 'Fading' example on the Arduino IDE. It's on port [PB5/SCK] (does that support PWM?) of the blank atmega328p that came with the kit. I didnt find any code for LEDs to fade, even though I think it should be "easy" to do. Where can I find it ? Does anyone have that code already ? That would be nice Razz Thank you
PS: I don't have a crystal (it's working with the 1mhz internal)


Forum Scientist
Scientist


Status: offline

Registered: 08/18/09
Posts: 41

Profile Email    
   
By: Windell (offline) on Thursday, April 14 2011 @ 04:25 PM PDT  
Windell

>I want to make the same LED pulse, just like the 'Fading' example on the Arduino IDE.

I'm not sure what example this is, but you can use the USBtinyISP as the programmer with Arduino, if you want to go that way.

> It's on port [PB5/SCK] (does that support PWM?)

It does not do hardware PWM, but you can still do software PWM. Execute a loop, where the LED output is high part of the time.


Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/

Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 06/15/06
Posts: 1932
Sunnyvale, CA

Profile Email Website  
   
By: xDGx (offline) on Monday, April 18 2011 @ 08:28 PM PDT  
xDGx

Hum... ok, I understood how coding and uploading to the Atmega328 works but programming for it is a bit too much for me. It seems way harder then the Arduino, so I thought of burning the bootloader to the '328 and use it as an Arduino.
The problem is after burning the bootloader, I have to upload code to it using the Arduino IDE.
I have another Arduino, can i upload code from one to another using ISCP pins ?

Thank you


Forum Scientist
Scientist


Status: offline

Registered: 08/18/09
Posts: 41

Profile Email    
   
By: Windell (offline) on Tuesday, April 19 2011 @ 02:09 PM PDT  
Windell

Hum... ok, I understood how coding and uploading to the Atmega328 works but programming for it is a bit too much for me. It seems way harder then the Arduino, so I thought of burning the bootloader to the '328 and use it as an Arduino.
The problem is after burning the bootloader, I have to upload code to it using the Arduino IDE.
I have another Arduino, can i upload code from one to another using ISCP pins ?



Yes you can, but if you have a USBtinyISP, then it's much faster and easier to just use that for your programming.


Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/

Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 06/15/06
Posts: 1932
Sunnyvale, CA

Profile Email Website  
   



 All times are PDT. The time is now 03:16 PM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to Post 
Filtered HTML Allowed 
Censored Content 

Evil Mad Scientist Forum Archives — Read only!

Please visit our new forums for new discussions.


DIY Hardware for Electronic Art


The Original Egg-Bot Kit


Octolively
Interactive LED kits


Meggy Jr RGB
LED matrix game
development kit.


Business-card sized
AVR target boards


Peggy 2
LED Pegboard kits

My Account






Lost your password?