Getting started with Arduino UNO

(Difference between revisions)
Jump to: navigation, search
Line 17: Line 17:
 
#When you want to use an Arduino UNO (not R3) then you need to change <span style="color:#008000">arduino </span>to <span style="color:#008000">stk500</span> (not tested info)
 
#When you want to use an Arduino UNO (not R3) then you need to change <span style="color:#008000">arduino </span>to <span style="color:#008000">stk500</span> (not tested info)
  
[[File:Arduino uno ext programmer.PNG|border|center|600x600px]]
+
 
 +
 
 +
[[File:Arduino uno ext programmer.PNG|border|center|600x600px|Arduino uno ext programmer.PNG]]
 +
 
 +
 
 +
 
 +
Easy Example Code:
 +
 
 +
$regfile = "m328pdef.dat"<br/>$crystal = 16000000 '16MHz<br/>$hwstack = 60<br/>$swstack = 60<br/>$framesize = 60<br/><br/>Config Com1 = 57600 , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0<br/><br/><br/>Do<br/><br/>&nbsp;Print "Hello World"<br/>&nbsp;Waitms 1000<br/><br/>Loop<br/><br/><br/>End 'end program
  
 
[[Category:Projects]]
 
[[Category:Projects]]

Revision as of 13:48, 8 March 2013

Procedure for Getting started with Arduino UNO R3

  1. Download Arduino Software (which included the USB driver for Arduino UNO and AVRDUDE)
  2. http://arduino.cc/en/main/software
  3. Create an folder Arduino e.g. C:\arduino-1.0.3
  4. Copy the Arduino files into C:\arduino-1.0.3
  5. The drivers can be found under C:\arduino-1.0.3\drivers     (not the FTDI USB Drivers)
  6. If the Arduino UNO was already connected then use following help http://arduino.cc/en/Guide/UnoDriversWindowsXP which is similar to Windows7 or Windows8 procedure.
  7. AVRDUDE can be found in folder:  C:\arduino-1.0.3\hardware\tools\avr\bin
  8. Configure the programmer in Bascom-AVR OPTIONS >>>> Programmer
  9. Select: External programmer
  10. Select: Hex
  11. Under Program: select the path to AVRDUDE.exe   -->  C:\arduino-1.0.3\hardware\tools\avr\bin\avrdude.exe
  12. Under Parameter use:   -v -F -C c:\arduino-1.0.3\hardware\tools\avr\etc\avrdude.conf -p m328p -P com8 -c arduino -b 115200 -Uflash:w:{FILE}:a
  13. Change the comX port to the COM port of your Arduino UNO
  14. The avrdude.conf file can be found here: c:\arduino-1.0.3\hardware\tools\avr\etc\
  15. When you want to use an Arduino UNO (not R3) then you need to change arduino to stk500 (not tested info)


Arduino uno ext programmer.PNG


Easy Example Code:

$regfile = "m328pdef.dat"
$crystal = 16000000 '16MHz
$hwstack = 60
$swstack = 60
$framesize = 60

Config Com1 = 57600 , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0


Do

 Print "Hello World"
 Waitms 1000

Loop


End 'end program

Personal tools
Namespaces
Variants
Actions
Navigation
Language