Ihave a Hobbincontroller.hex file that was provided to me to build a Gear Hobbing project.
Qustion: How can load that file in the board that I have?
Thanks
Ihave a Hobbincontroller.hex file that was provided to me to build a Gear Hobbing project.
Qustion: How can load that file in the board that I have?
Thanks
Depends on your board!
Below one way to do it; it might depend on the content of the hex file if it works or not. I can only tell you that this willwork if the hex file does not contain a boot loader as well (consult the supplier of the hex file). The safe way would be to use a programmer.
In the IDE, file -> preferences and enable verbose output during upload. You will see things below come along when you do an upload of e.g. blink. The relevant part to look for is
C:\Users\sterretje\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\sterretje\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -PCOM6 -b57600 -D -Uflash:w:C:\Users\sterretje\AppData\Local\Temp\arduino_build_959790/Blink.ino.hex:i
Replace the filepath at the end by the filepath of your hex file; make sure to leave the :i that is at the end.
Hi,
Was the code written for the UNO?
Or the ATmega328P controller chip in particular?
Thanks.. Tom...
![]()
I do not understand the question. But what I did was use IDE and selected Mega328p mini Xplained or something like that. I just do not know what board I should select.
My board has a chip atmel328p only, but I do not do how to proceed differently.
Thanks for your answer, I feel so frustrated, but I do not want ti give up.
My intuition is that this LCD by ROBOT was for chip 2560 and I cannot figure out how to connect if for sure with cables without mounting it in top of the Arduino board as shown in many YouTube videos.
Thanks a lot.
Wilson
Whaooo…. Thanks I will try it
Wilson
What does a LCD have to do with the upload? It's the first time that you mention a LCD in this topic; are you sure that you're not confused with another topic of yours?
Thanks for your time. I am not really knowing what is the problem. By plunging the LCD Shield stesjng on the Arduino as I saw in YouTube did not work. After that I locked (in my opinion) the board with a Blink.uno that I coded as test to see if I could use this to debug. The Blink.uno worked perfect sending back to me what I intended as a test between to lines of code: serial.print(“Blink.uno”).
After that could not load any other code, it seems the executing program keeps the COM port locked to itself I managed to get one board (I purchased 3) free to receive, but the sample codes I found for the LCD do give me any results. Nothing changes on a fully bright LCD.
Really I am lost, I thought I understood, bu I am in doubt I can make any sense in what is going on and I am doing.
Thanks
My best guess now is that since I do not understand much, I am unable to correctly select the parameters for the KCD() function and/or the LCD by ROBOT I purchased is not compatible wit the 328p chip or board.
Not sure what board to select on the “Tools” menu. I am using ATMega 328p x plain mini which is the closest I can think on what it reads on the chip of the Arduino Rev 3 compatible.
Any clues?
Thanks a lot for the time and support, being 83 years does not help.
Wilson
Thanks. All I know is as sold as Arduino compatible Rev 3 and the chip is AtMega328p.
The only one I found in IDE Tooks was the maga 327p x plan mini
Is that the correct one to use?
We don't know if it's the correct one because we don't know which board (not shield) you bought. Please post a link to the board that you bought. Is this the one? https://www.microchip.com/en-us/development-tool/ATMEGA328P-XMINI
A 328P is used on several boards:
By the way, I'm getting confused and feel like I'm wasting my time. In LCD KetPad by Robot hookUp for Mega328p Rev 3 - #8 by wilsonarduinouno you state that you can upload.
yes, it was. The creator show it in his Youtube also working an a hobbing machine he designed. "Andysachines" in YouTube Woderful project to make gears without a conventional Dividing Head.
Thanks, Wilson
Sorry about me causing confusion, but I am confused myself and maybe I should not be poking into this things. But something in me tells me that I should not give up ever. I heard that perseverance beats intelligence by far, so here I go again.
My memory is so lousy that I forget what I was doing or wanted to do 5 minutes ago some times. My apologies for making you feel you wasting your time.
I appreciate very much getting the kind of support I got from you and feel ashamed to be wasting resources like that.
But as often do, some one on the forum woke me up that I am no selecting the correct board with IDE Tools.
I will try today with the correct selection: Arduino Uno Rev 3. I was selecting AVR 329p plain exmini or something like that !!!
Again, my apologies for my shortcomings creating this mess.
WILSON
Apologies accepted.
I wonder why you have that option. You must have installed that boards package for some reason; and the usual reason would be that you have that board.
Sterreeyje and all other forum members that had put up my silly problems al my thanks and appreciation.
I was making a horribly simple problem by choosing the incorrect board with IDE "Tools".
I just managed to run the Buttons check sketch for this forum/site and made some changes to learn a little more and my Arduino Uno board seems to be working fine as well as the LCD Key Pad Shield by ROBOT.
Now the time to continue learning and see if I can code my own "Synchronization" project of a rotating shaft (with a cutting tool (AKA milling Machine with gear hobbing cutter) and a "freewheeling" (not really free but driven by a stepped motor controlled by the Arduino board). This makes obsolete and very "handy" to make all kinds of gears without having to cut one gear tooth at a time using an "Indexing Dividing Head" which is prone to operator's error.
Thanks a lot to all of you for your support and my less than professional way of conveying what was happening.
Hope I learnt a few lessons not only in Arduino use, but general nature.
Thanks, from Wilson
Thank you.
Now on the HEX loading file, I have been trying to understand what to do, but fail miserably.
As per suggestion from moderator and following Forum rules the following is the "state" of the project with my problem to load an pre-compiled file (given to me and proven to be working) ending on HEX on my Arduino Uno board:
I cannot understand much the results of a test with any other C sketch using IDE with the preferences set up on "Verbose" for loading and compiling as a method to see what should I be writing using DOS screen on the laptop.
The closest is with the following but still cannot figure out my mistakes:
copy of input and output as Administrator are:
************** this did not work: with=> C:\WINDOWS\system32>C:\Program Files (x86)\ArduinoFredy\hardware\tools\avr\avrdude.conf -v -patmega328p -carduino -PCOM4 -b57600 -D -Uflash:w:C:\Program Files (x86)\ArduinoFredy\hardware\tools\avr\bin/HobbingController.hex:i
results/error: 'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
I think the paths written is correct for the location of avrdue.exe and also for the HobbingContorller.HEX.
I will recheck one more one by one, but cannot see where the fault is.
Thanks.
That's the line of interest. It will be easier to see if you disable verbose output during compilation which in most cases is a useles option.
You only have to change
C:\Users\15125\AppData\Local\Temp\arduino_build_587586/Sketch_ERASE_Me.ino.hex
to reflect the correct location of your specific hex file.
Well, thanks to all the support I was able to load correctly the file I was given for my project in HEX format.
Very any thanks for the help, here is my contribution for those tat may have the same problems I had:
while you are in C:\WINDOWS\system32 as the admisitrator, copy and paste the following:
C:\Users\15125\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\15125\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -PCOM4 -b115200 -D -Uflash:w:C:\Users\15125\Arduino_Files_Learning/Arduino_AndysMachines/hobbingcontroller.hex:i
The whole thing needs to written on one continuous line in DOS, do not omitt anything or it will not work.
It worked like a charm for me.
Great.
You can mark your topic as solved by clicking the "solution" button under the most useful reply so others know that a solution was provided.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.