Programozás | Egyéb » Programming Prayog using Standard Programmer, Arduino IDE

Alapadatok

Év, oldalszám:2017, 6 oldal

Nyelv:angol

Letöltések száma:12

Feltöltve:2018. május 14.

Méret:645 KB

Intézmény:
-

Megjegyzés:

Csatolmány:-

Letöltés PDF-ben:Kérlek jelentkezz be!



Értékelések

Nincs még értékelés. Legyél Te az első!


Tartalmi kivonat

Source: http://www.doksinet 2017/12/22 04:39 1/6 Programming Prayog using standard Programmer + Arduino IDE 1.01 Programming Prayog using standard Programmer + Arduino IDE 1.01 Arduino IDE from version 1.01 onward support direct Sketch downloading using standard AVR ICSP Programmers like USBasp, AVR ISP, AVR ISP mkII, Parallel Programmer, USBtinyISP. Screenshot shown below shows the default programmers supported by Arduino 1.01, You can add your own programmers also, How ? Once you choose your Programmer (USBasp in my case), Open one of the example Sketch or make your own Sketch. eg FileExamplesBasicsBlink PrayogWiki - http://wiki.electroonscom/ Source: http://www.doksinet Last update: 2012/08/17 03:36 prayogduino using programmer http://wiki.electroonscom/dokuphp?id=prayogduino using programmer /* Blink Turns on an LED on for one second, then off for one second, repeatedly. This example code is in the public domain. */ // Pin 0 has an LED connected on Prayog board. // give

it a name: int led = 0; // the setup routine runs once when you press reset: void setup() { // initialize the digital pin as an output. pinMode(led, OUTPUT); } // the loop routine runs over and over again forever: void loop() { digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(led, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second } Listing 1 You can use the default Blink example of Arduino, but you need to change to LED pin as in Prayog LED is connected to Pin0 and Pin1, you can use any of them for your program. http://wiki.electroonscom/ Printed on 2017/12/22 04:39 Source: http://www.doksinet 2017/12/22 04:39 3/6 Programming Prayog using standard Programmer + Arduino IDE 1.01 Now Verify/ Compile your Sketch If there are no errors, Go to FileUpload Using Programmer (Ctrl + Shift + U) (assuming you have connected your programmer to Prayog using 10 pin FRC cable, Given

along with Prayog) this will upload the Sketch using Programmer chosen by you. Now when Arduino says Done Uploading !, You have successfully downloaded the Sketch on Prayog board, now the LED attached to Pin 0 should blink with an interval of 1 second. You should see output in the bottom pane of Arduino, If it is something like shown below you are done. avrdude: Version 5.11, compiled on Sep 2 2011 at 19:38:36 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicrocom/ Copyright (c) 2007-2009 Joerg Wunsch System wide configuration file is "H:arduinoarduino-1.01hardware/tools/avr/etc/avrdudeconf" PrayogWiki - http://wiki.electroonscom/ Source: http://www.doksinet Last update: 2012/08/17 03:36 prayogduino using programmer http://wiki.electroonscom/dokuphp?id=prayogduino using programmer Using Port : usb Using Programmer : usbasp avrdude: seen device from vendor ->www.fischlde<avrdude: seen product ->USBasp<AVR Part : ATMEGA8 Chip Erase delay : 10000 us PAGEL :

PD7 BS2 : PC2 RESET disposition : dedicated RETRY pulse : SCK serial program mode : yes parallel program mode : yes Timeout : 200 StabDelay : 100 CmdexeDelay : 25 SyncLoops : 32 ByteDelay : 0 PollIndex : 3 PollValue : 0x53 Memory Detail : Block Poll Page Polled Memory Type Mode Delay Size ReadBack ----------- ---- ----- --------- --------eeprom 4 20 128 9000 0xff 0xff Block Polled Memory Type Mode Delay Size MaxW ReadBack ----------- ---- ----- --------- --------flash 33 10 64 4500 0xff 0x00 Block Polled Memory Type Mode Delay Size MaxW ReadBack ----------- ---- ----- --------- --------lfuse 0 0 0 2000 0x00 0x00 Block Polled Memory Type Mode Delay Size MaxW ReadBack ----------- ---- ----- --------- --------- Indx Paged Size Size #Pages MinW MaxW http://wiki.electroonscom/ ---- ------ ------ ---- ------ ----0 no 512 Poll Indx Paged 4 0 9000 Page Size Size #Pages MinW ---- ------ ------ ---- ------ ----0 yes 8192 Poll Indx Paged 64 128 4500 Page Size Size #Pages

MinW ---- ------ ------ ---- ------ ----0 no 1 Poll Indx Paged 0 0 2000 Page Size Size #Pages MinW ---- ------ ------ ---- ------ ----- Printed on 2017/12/22 04:39 Source: http://www.doksinet 2017/12/22 04:39 5/6 hfuse 2000 0x00 0x00 Programming Prayog using standard Programmer + Arduino IDE 1.01 0 0 0 0 no 1 Block Poll 0 0 2000 Page Polled Memory Type Mode Delay Size MaxW ReadBack ----------- ---- ----- --------- --------lock 0 0 0 2000 0x00 0x00 Block Polled Memory Type Mode Delay Size MaxW ReadBack ----------- ---- ----- --------- --------calibration 0 0 0 0 0x00 0x00 Block Polled Memory Type Mode Delay Size MaxW ReadBack ----------- ---- ----- --------- --------signature 0 0 0 0 0x00 0x00 Indx Paged Size Size #Pages MinW ---- ------ ------ ---- ------ ----0 no 1 Poll Indx Paged 0 0 2000 Page Size Size #Pages MinW ---- ------ ------ ---- ------ ----0 no 4 Poll Indx Paged 0 0 0 Page Size Size #Pages MinW ---- ------ ------ ---- ------

----0 no 3 0 0 0 Programmer Type : usbasp Description : USBasp, http://www.fischlde/usbasp/ avrdude: auto set sck period (because given equals null) avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.02s avrdude: Device signature = 0x1e9307 avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed To disable this feature, specify the -D option. avrdude: erasing chip avrdude: auto set sck period (because given equals null) avrdude: reading input file "C:UsersdellAppDataLocalTempuild3144994868542595328.tmpBlinkcpphex" avrdude: writing flash (888 bytes): Writing | ################################################## | 100% 6.59s avrdude: 888 bytes of flash written avrdude: verifying flash memory against C:UsersdellAppDataLocalTempuild3144994868542595328.tmpBlinkcpphex: avrdude: load data flash data from input file PrayogWiki - http://wiki.electroonscom/ Source:

http://www.doksinet Last update: 2012/08/17 03:36 prayogduino using programmer http://wiki.electroonscom/dokuphp?id=prayogduino using programmer C:UsersdellAppDataLocalTempuild3144994868542595328.tmpBlinkcpphex: avrdude: input file C:UsersdellAppDataLocalTempuild3144994868542595328.tmpBlinkcpphex contains 888 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 4.98s avrdude: verifying . avrdude: 888 bytes of flash verified avrdude done. Thank you. Listing2 From: http://wiki.electroonscom/ - PrayogWiki Permanent link: http://wiki.electroonscom/dokuphp?id=prayogduino using programmer Last update: 2012/08/17 03:36 http://wiki.electroonscom/ Printed on 2017/12/22 04:39