Saturday, November 14, 2009

Spiderwheels: How to bootload a breadboard sanguino...

Now that I have a leg constructed it is time for me to focus my attention on the circuit. I have decided to base my circuit design off of the sanguino by Zack Hoeken. I made this decision for three reasons.


  • I want to stay close to the arduino community in order to leverage all the open source work that has been done.

  • There are no surface mount parts in the design, which is good because I want to keep this at the beginner level. It's also good because I want to prototype on a breadboard and SMT doesn't play nice with breadboards.

  • It has enough pins. I need at least 18. I want 27. The sanguino has 32.

I put in orders for all the parts I need for two sanguinos, as well as a USB to TTL cable and a USBtinyISP bootloader last week. I was really lucky that all the orders came in last night.

First, I soldered together my USBtinyISP kit.



Then I followed this tutorial to construct a breadboard sanguino for prototyping.

I was a novice to AVRs and the inner workings of the arduino family of boards as of last night so I was naive enough to think that it may be possible for the bootloader to magically go onto the AVR chip when you load the firmware for the first time. Nope. I got the "avrdude: stk500_getsync(): not in sync: resp=0x00" error.

Though I was naive enough to try it I was smart enough to have already made a USBtiny bootloader. However, how do you plug the USBtiny into the breadboard sanguino?



As you can imagine this was an intimidating problem! Remember, I was a novice. It's not that the information isn't provided. Technically, all you need is the schematic of the USBtinyISP and the schematic of the sanguino to figure it out. Still... I am kind of surprised that the sanguino website doesn't say much about bootloading. I mean... this is an open source project. Furthermore, arduino bootloading tutorials are hard to come by in general. This got me thinking. Why are there no / very few tutorials on bootloading? Is it to encourage people to buy their kits which have already been bootloaded? Is it because bootloading is too technical for the average arduino hobbyist to understand? Is it because no one really cares because they have no desire to design an arduino variant on their own? Maybe it's just that no one took the time. Definitively something to think about. I welcome thoughts on this.

It took me two whole hours to check and double-check my work before I felt comfortable plugging in the USBtinyISP. Here is what you need to do if you want to bootload an ATmega644P on a breadboard with a USBtinyISP.

USBtinyISP ICSP (1) goes to (b16)

USBtinyISP ICSP (2) goes to (b19)

USBtinyISP ICSP (3) goes to (b17)

USBtinyISP ICSP (4) goes to (b15)

USBtinyISP ICSP (5) goes to (b18)

USBtinyISP ICSP (6) goes to (b20)


Now, assuming you have followed the tutorials on how to get your computer to recognize the USBtinyISP and you have successfully installed the arduino app + sanguine files, the next step is to plug in your USBtinyISP. Then open up your Arduino application, select board > sanguino, select burn bootloader > USBtinyISP and wait 5 to 10 minutes. I didn't think it would take that long but I resisted the urge to unplug it and try again. It worked the very first time with patience.

I just burnt a bootloader on a fresh chip! Now I can plug in the USB to TTL cable like this:



and burn some firmware. I successfully uploaded the blink program to the ATmega644P chip before writing this.

I hope this is of use to someone.

58 comments:

  1. Very interesting blog with Chip Level Repairing with the neat images described here in an understanding way of using the tools, very useful site. I feel strongly about it and love learning more on this topic. Chip Level Training in Hyderabad

    ReplyDelete
  2. Cool stuff you have and you keep overhaul every one of us.

    Data Science Course

    ReplyDelete
  3. Great advice and very easy to understand. It will definitely come in handy when I get the chance to start my blog.

    Data Science Courses

    ReplyDelete
  4. Hello! I just want to give a big thank you for the great information you have here in this post. I will probably come back to your blog soon for more information!

    Data Science Certification

    ReplyDelete
  5. It would also motivate almost everyone to save this webpage for their favorite helper to help get the look published.

    Business Analytics Course in Bangalore

    ReplyDelete
  6. Just a shine from you here. I have never expected anything less from you and you have not disappointed me at all. I guess you will continue the quality work.

    Data Analytics Course in Bangalore

    ReplyDelete
  7. Truly incredible blog found to be very impressive due to which the learners who ever go through it will try to explore themselves with the content to develop the skills to an extreme level. Eventually, thanking the blogger to come up with such an phenomenal content. Hope you aarrive with the similar content in future as well.

    Digital Marketing training

    ReplyDelete
  8. It was a wonderful opportunity to visit this type of site and I am happy to hear about it. Thank you very much for giving us the opportunity to have this opportunity. PMP Certification in Hyderabad

    ReplyDelete
  9. i am for the first time here. I found this board and I in finding It truly helpful & it helped me out a lot. I hope to present something back and help others such as you helped me Water Softener

    ReplyDelete
  10. Wonderful article. Fascinating to read. I love to read such an excellent article. Thanks! It has made my task more and extra easy. Keep rocking 토토사이트

    ReplyDelete
  11. I truly like you're composing style, incredible data, thankyou for posting 메이저토토사이트

    ReplyDelete
  12. I am genuinely thankful to the holder of this web page who has shared this wonderful paragraph at at this place windshield crack repair

    ReplyDelete
  13. Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work dental implants tijuana

    ReplyDelete
  14. Thanks for sharing nice information with us. i like your post and all you share with us is uptodate and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job seo tijuana

    ReplyDelete
  15. Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking. real estate broker wakefield

    ReplyDelete
  16. Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking. courtier immobilier wakefield

    ReplyDelete
  17. The post is written in very a good manner and it contains many useful information for me. elementi fire pit

    ReplyDelete
  18. I am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job! studio yoga tribe gatineau

    ReplyDelete
  19. I have been checking out a few of your stories and i can state pretty good stuff. I will definitely bookmark your blog freelancer malta

    ReplyDelete
  20. I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business Pergola

    ReplyDelete
  21. I found useful information on this topic as Now i'm focusing on a company project. Thank you posting relative information and its currently becoming easier to complete this project video production agency in baltimore

    ReplyDelete
  22. I am incapable of reading articles online very often, but I’m happy I did today.  It is very well written, and your points are well-expressed.  I request you warmly, please, don’t ever stop writing shipping from china

    ReplyDelete
  23. Thanks for picking out the time to discuss this, I feel great about it and love studying more on this topic. It is extremely helpful for me. Thanks for such a valuable help again. 먹튀검증업체

    ReplyDelete
  24. The Data Scientist Certification Programme is one of the most comprehensive Data Science Course in Bangalore. It is specially designed to suit both data professionals and beginners who want to make a career in this fast-growing profession. Over 6 months, students will learn key techniques such as Statistical Analysis, Regression Analysis, Data Mining, Machine Learning, Forecasting and Text Mining, and tools such as Python and R Programming.

    ReplyDelete
  25. A very awesome blog post. We are really grateful for your blog post. combat, law enforcement You will find a lot of approaches after visiting your post.출장안마

    I was exactly searching for. Thanks for such post and please keep it up. Great work

    ReplyDelete
  26. dependably manufacture astonishing entities That's a really good piece of data. Amazing토토존보증업체

    ReplyDelete
  27. We are linking to this great post on our website 안전사이트

    ReplyDelete
  28. This is an excellent post I seen thanks to share it. It is really what I wanted to see hope in future you will continue for sharing such a excellent post.
    digital marketing courses in hyderabad with placement

    ReplyDelete
  29. WOW just what I was searching for. Came here by searching
    for snow online

    my weblog: 오피사이트
    (jk)

    ReplyDelete
  30. Hello to all, how is everything, I think every one is
    getting more from this site, and your views are good for new visitors.
    출장안마

    ReplyDelete
  31. You have completed certain reliable points there. I did some research on the subject and found that almost everyone will agree with your blog.

    Best Cyber Security Training Institute in Bangalore

    ReplyDelete
  32. Very good message. I came across your blog and wanted to tell you that I really enjoyed reading your articles.


    Best Ethical Hacking Institute in Bangalore

    ReplyDelete
  33. This printer prints with high definition reverse technology printing. The results are a higher quality print than the standard direct to card printer. renting impresoras

    ReplyDelete
  34. Winrar Crack Complete Edition presents a graphical interface that utilizes mouse and menu and command line interface. WinRAR key is simpler to implement than a great many other archiving software packages, by way of example

    ReplyDelete
  35. With decision making becoming more and more data-driven, learn the skills necessary to unveil patterns useful to make valuable decisions from the data collected. Also, get a chance to work with various datasets that are collected from various sources and discover the relationships between them. Ace all the skills and tools of Data Science and step into the world of opportunities with the Best Data Science training institutes in Bangalore.

    Data Science Course in Jaipur

    ReplyDelete
  36. K-Nearest Neighbour (KNN) algorithm is one of the uncomplicated ML algorithms based on the Supervised Learning Technique. It assumes the similarities between the new and available data and categorizes them based on pre-existing groups while storing all the available data. KNN incorporates a data point based on similarities of new and old data. It is used for both regression and classification of data, but the latter is used frequently. To learn more about KNN start your Data Science training today with 360DigiTMG.


    Business Analytics Course in Jodhpur

    ReplyDelete
  37. Learn the fundamentals of Data Science and master the skills to handle epic amounts of data collected by organizations today. Gain expertise in organizing, analyzing, and transforming data to uncover its hidden power. Drive your career forward with a Data Science course in Bangalore and learn to uncover insights to present critical findings using visualization tools. Not only this, avail the best-in-class content delivered by stellar faculty who use a blended approach of theory as well as practical knowledge to ensure all the concepts are crystal clear.


    Data Science Training in Delhi

    ReplyDelete
  38. it is actually a capably investigated content and super phrasing. I were given consequently connected on this texture that I couldnt stand by considering. i'm intrigued while your capability and dogfight out-stroke. much appreciated. Avast VPN Crack

    ReplyDelete
  39. I gather that is an enlightening make seen and it's miles concurred critical and learned. thusly, I could related with to thank you for the moves which you have made recorded as a printed duplicate this text. the substance material is all around that truly matters, incredibly examined. much appreciation to you... Spyhunter 5 Crack

    ReplyDelete
  40. Today on this special day of Christmas I want to wish you with a great life ahead as you are the one who had filled my life with lots of love and life!! Wishing Christmas MSG To Loved Ones

    ReplyDelete