Saturday, April 2, 2016

ARDUINO-6

Today I bought Rs. 400/- worth components for arduino experiments. New arduino with usb support the Arduino UNO R3 was also priced at rs.450/- ?

I was hesitating but , thought well after a year I will be mastering the tech why not put little money. I will have cw keyer and dds vfo. Before that I need to do a little boot loading into the blank AT mega328pu.

Made a circuit on verobaord. Attempted the programming.




Then during the programming something went wrong. My programming attempt was interrupted. It showed me following errors.

THE PROBLEM

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.
Arduino: 1.0.6 (Windows NT (unknown)), Board: "Arduino Uno"
avrdude: stk500_program_enable(): protocol error, expect=0x14, resp=0x50
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

Searched google and found that there is no solutions for this problem. Ohh once again end of the dream of making Arduino from scratch, dds vfo, cw keyers etc.

Once again felt cheated.

 *****************
17 April 2016 :-

I have two things. Arduino Uno R2 and a blank ATMega328PU. My shop wendor has unfortunately given me the 328pu instead of normal 328P- PU.

I connected UNO to computer. From IDE uploaded the ISP sketch into UNO. Now it is ready to programe a blank IC.
On the veroboard as per above circuit diagram made a ckt. Connected proper terminals.  I used wire with male pins on both side.
Now from IDE option "bootload".
When I tried to bootload the blank IC above error came up.
on searching the net I knew it has no solutions.

******************
SOLUTION

To get a solution I asked in, two facebook groups. One is Indian Homebrewers and second is Arduino...

To search the technology i asked in Arduino forum, there i got info about USBASP. As use for specific to Ham radio use i once again asked in Indian Homebrewers forums. They gave me replies. Many person participated, namely Rushiraj Jawale ,Mohammed HaroonSyed , Suresh Verma ji , Max Vatt and many more. The discussion is cronologically put into Q & A form. Their words/ contents is not edited at all.

Indrajit Sinh:: (questions) From another forum  i got the idea of USBASP to programe the ATMega328 & other chips. Does anyone have used this ? any idea, experiences, pitfalls, price, hints etc ? please

Reply :- Rs.200-250 Macnet (vega robo kits) Besides Visha Electronics, Lamington Road. Excellent programmer no need of serial port. USB programmer. Can program a wide range of MCUs from Atmel like AT89S51/52, Atemga8/16/32/328 etc. Only you need to install the drivers in the PC.

Questions-- Anylink please ?
Reply --- http://www.vegarobokit.com/index.php...


USBASP Programmer This programmer is based on Thomas Fischl’s USBasp design and connects to your… VEGAROBOKIT.COM

Question --- Please elaborate on exact name of this programmer... what do i say to shop keeper ? what will be name, brand name, will they give cd / dvd with it etc....

Reply -1--- yes. this is the one. Just tell him USBasp programmer. The programmer looks like a pen drive.... See More

USBasp - USB programmer for Atmel AVR controllers - fischl.de

FISCHL.DE

Reply - 2 :: I use exactly same set up, very simple and easy. Its for 200 rs in Hyderabad.

Reply-3 You will have to search at Lamington Road ( Mumbai). You will definitely get it for less than Rs.250.

Question---what software you are using in computer ? IDE ?

Reply-1--- Code Vision AVR evaluation version. Can program up to 4 Kb of code with evaluation version. It is again very simple as it contains GUI to initialise all the peripherals like timers, interrupts , I/O pins, LCD interface etc. So initialising peripherals ... See More

Reply-2 --- yes. But as an engineer I have the required knowledge of the MCU registers. But GUI based software is good for hobbyists who don't want to study into depth about the MCUs.

Page 1 of 2(106) INDIAN HOMEBREWERS

5/9/2016https://www.facebook.com/groups/Indian.Homebrewers/

Question:--- This USBASP programmer hardware, its driver and now i need IDE which ide should i use ? ARDUINO IDE , ATMEL Studio , Avrdude console what software / GUI should i use ..... please elaborate on this.

Reply--- write program in ATmel studio if you're using avr MCU like atmega series.

Question--- arduino ide will work ?

Reply --- yes.

Question--- ok, thanks. how to use it ? any tutorial link, i have seen tutorial with other IDE but not of arduino...

Reply--- its easy. In the arduino IDE just select programmer as usbasp in the tools section. and click on upload using programmer

Question--- The Usbasp has 10 pin socket do it fit into verobard ? i think size is different from veroboard holes, how do you solve this problem....

Reply ---out of the 10 pins only 5 are used for programming

Question --- Yep True but my question is its size is differnt from verobaord hole ?

Reply--- It is a programmer. You will have to use jumpers to connect to the atmega. once programmed, you can fit the micro controller on the veroboard. You can program the microcontroller on a breadboard. You can also make a similar connection on the veroboard itself so no need of removing the controlller. It is called as a 10pin FRC(Flat ribbon connector) male

no problem i think i will make a small pcb for arduino with ZIF and this connector. Last time used this 10pin it did not fit into veroboard holes, as spacing is little different.

Question Any other reply ?

 Reply -1--- > study this link properly, you should find all your answers. http://roboindia.com/store/index.php...

USBASP USB Programmer ( for Arduino & AVR)

roboindia.com  ( this is the best tool for learning the Arduino )

http://roboindia.com/store/index.php?route=product%2Fproduct&path=74&product_id=135

Reply-2--- I myself use USBasp regularly with AVRDUDESS program, it supports many atmega devices. Try looking for one on ebay.in, you might find it at a cheaper rate. - VU2IIA.


Page 2 of 2(106) INDIAN HOMEBREWERS

5/9/2016https://www.facebook.com/groups/Indian.Homebrewers/


during this searching exercise I learned a great deal about the IDE, programmers, uab cables, boards etc.

FTDI, ARDUINO UNO R3, etc are not the proper way to programe and MCU
.
You must have specialized programmer board or the USBASP.

Damn ! nobody told me this fact.

So, friends ! the wheel has been spotted. Its time to use it.

3 comments:

  1. Dear Inderjit,
    Arduino uno comes preloaded with a boot loader, and if I understand correctly you just attempted to over write it.......however it can be restored back.....but it is a bit tactical.....

    ReplyDelete
  2. No, sir, I have UNO and with help of it was trying to bootload a blank ATMega328pu.

    ReplyDelete
  3. ONLY Question is why my ARDUIONO used as ISP is not able to bootload another blank Atmega328pu

    ReplyDelete