Getting started with Arduino UNO
(Difference between revisions)
Line 48: | Line 48: | ||
</source> | </source> | ||
− | == Author<br/> == | + | == Used Versions<br/> == |
+ | |||
+ | Bascom-AVR 2.0.7.6 | ||
+ | |||
+ | Windows8 | ||
+ | |||
+ | == Author<br/> == | ||
MAK3 | MAK3 | ||
+ | |||
[[Category:Projects]] | [[Category:Projects]] |
Revision as of 14:56, 8 March 2013
Contents |
Procedure for Getting started with Arduino UNO R3
- Download Arduino Software (which includes the USB driver for Arduino UNO and AVRDUDE)
- http://arduino.cc/en/main/software
- Create an folder Arduino e.g. C:\arduino-1.0.3
- Copy the Arduino files into C:\arduino-1.0.3
- The drivers can be found under C:\arduino-1.0.3\drivers (not the FTDI USB Drivers)
- 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.
- AVRDUDE can be found in folder: C:\arduino-1.0.3\hardware\tools\avr\bin
- Configure the programmer in Bascom-AVR OPTIONS >>>> Programmer
- Select: External programmer
- Select: Hex
- Under Program: select the path to AVRDUDE.exe --> C:\arduino-1.0.3\hardware\tools\avr\bin\avrdude.exe
- 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
- Change the comX port to the COM port of your Arduino UNO
- The avrdude.conf file can be found here: c:\arduino-1.0.3\hardware\tools\avr\etc\
- When you want to use an Arduino UNO (not R3) then you need to change arduino to stk500 (not tested info)
Easy Example Code
Source code for Hello World program:
$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
Used Versions
Bascom-AVR 2.0.7.6
Windows8
Author
MAK3