First of all I beg those who have no constructive answer to avoid answering this topic and, please, don't bulk this topic. I would be very glad to share with everybody a topic post that is clear and doesn't take a lot of time and effort to achieve the goal. Thank you very much for keeping doing like I beg for and helping us all to increase our knowledge kindly.
One week ago I got a little accident while programming one Arduino and I would like to explain it to you all to let you know that this things happen. I would like to find the way not to have this issue anymore, plus, I guess it might be interesting to know how Arduino works.
The mentioned accident was so:
I was programing one Arduino that is embedded in the control cabinet of one machine.
The Arduino has a simple program to start one ventilator when the temperature of the cabinet is too high.
The power is provided by the control cabinet to the Arduino with 12V.
I was measuring the temperature via Serial Port to compare it with another thermometer. The measurements were provided by the program that the Arduino had.
The temperature sensor got unexpectedly a short-circuit due to its poor isolation. Something got burnt on the Arduino and the motherboard of my PC is also spoiled generating a very big inconvenience to me.
So, to avoid this I have thought that perhaps I might use an "Arduino in the middle" which I might program with a special program ready to send data to another Arduino, the "End-Arduino", via Serial Port with the pins 0 and 1 (in the case it is an Arduino UNO).
I already know how to send data from the End-Arduino and to get the data on the serial port of my computer using an Arduino in the middle, but I don't know how to write a program on the End-Arduino with one Arduino in the middle.
And now comes the important question:
Does anyone know how the transfer protocol looks like?
Does anyone know how I may transfer the program DIRECTLY from Arduino to Arduino?
I do not mean a software to isntall on the computer that takes the code from the arduino and then you may inject it in another arduino.
I mean a piece of code that you embeed into your code which allows you to send the piece of code you need to be in the End-Arduino from the Arduino in the middle via serial.
If you might give me any clue I would be very thankful to you.
If you want to go completely wireless, you could use an ESP8266 to program the Arduino over WiFi:
That being said, the true solution here is to fix your wiring. A well-designed system shouldn't blow up your motherboard when a temperature sensor goes bad.
Poorly designed electrical systems (even at 12V) are dangerous and will set your house on fire if you don't know what you're doing.
PieterP:
That being said, the true solution here is to fix your wiring. A well-designed system shouldn't blow up your motherboard when a temperature sensor goes bad.
Poorly designed electrical systems (even at 12V) are dangerous and will set your house on fire if you don't know what you're doing.
+100
...R
PS ... I find your introduction very unfriendly and not at all in the spirit of this Forum
First of all I beg those who have no constructive answer to avoid answering this topic and, please,
PieterP:
AVR-based Arduinos like the UNO use the Optiboot bootloader. It uses the STK500 protocol for flashing new firmware to the device over the UART...
Wow, it looks great! Thank you very much! That is a phenomenal answer!
PieterP:
That being said, the true solution here is to fix your wiring. A well-designed system shouldn't blow up your motherboard when a temperature sensor goes bad.
Poorly designed electrical systems (even at 12V) are dangerous and will set your house on fire if you don't know what you're doing.
You are right, unfortunately in the development not always the conditions are the best and sometimes accidents occur. Specially when the bosses try to save money without providing the right tools to their employees and these bosses are in a hurry to get the results without having the necessary technical knowledge for it. The best way to cope with it is to minimize the risks and damage for people principally and for the working tools as well as for the system you are working on. I couldn't design the temperature sensor, otherwise the + and - wouldn't be together in the sequence of pins, avoiding this way any high probability of having a short-circuit due to the contact of an external part that falls accidentally on the device. But now all temperature sensors get sordered to its cable conductors, then they go through a short-circuit test and once they have pass the test they get covered with a dielectric material avoiding the contact of external parts and or bad soldering issues.
Thanks to you perhaps some others and me will be able to create a barrier against accidental short-circuits that protects the main working tool. ; )
Thank you again for your answer and disposition!
I add this to inform everyone, the following message written by ieee488 is totally irrelevant and unnecessary. And till this point comes the relevant information of the post. I hope it was useful for more people and that it helps many more.