I'm working on a project that has a master and many slaves using RS485. I plan to put a QR sticker on each slave. The QR sticker contains a 128 bit UUID address. I need to scan the QR sticker using a scanner/camera and upload it via EEPROM to the MCU (Atmega328P) to be used as the slave's address.
Anyone here that thinks they know how to do this? Another programmer recommended this:
"You'll want to store the QR code in EEPROM, you can do that with avrdude easily from the command line. It would look something like this: script is waiting for input from barcode scanner, gets a scan, converts it into bytes, converts those into hex, call avrdude with the hex to program it into the EEPROM
Should be about a 10 or 15 line shell script"
Please let me know if you can do this. I'm willing to pay. Project/portfolio reference is required.
Hi, It does not matter to me which scanner to use. I prefer to have one recommended to me from Amazon if possible so that it's easier to program this. I'm not much of a programmer and therefore I do not know how to create this, so I am posting here asking for help from anyone who would like to take on this gig.
If each ATMega has exposed either ISP pins or serial & reset pins and already has a bootloader then it is reasonable simple to do.
The eeprom update can be done also over the RS485 link IF the eeprom updater code can be added to existing AVR program.
This could be a bit more complex solution but without seeing your program can't tell.
The advantage would be you don't have to open the case and plug in a connector to the ATMega board, EEPROM data could be uploaded directly from a 485 "master node"