| Electronics > Projects, Designs, and Technical Stuff |
| Best way to select the ID of each board? |
| (1/4) > >> |
| mrburnzie:
Hi! I'm working on a project where I have 100+ boards. All of them will have unique ID (1-100). What is the best way to assign these unique IDs using hardware? My idea was to have one switch on each of them, and the master which communicates with them wirelessly sends out the "configured ID", and the node which has the switch ON will assign itself to the received "configured ID". Others won't do anything. Any suggestions? |
| SiliconWizard:
To begin with, if your ID range is 1-100, how is that going to work to get unique IDs for more than 100 boards (which is what 100+ would imply)? ;D And now that's settled, do you absolutely need to be able to set a specific ID for each board, or does it just need to be unique? In the latter case, my favorite approach is to use some kind of ID chip, like such: https://www.microchip.com/ParamChartSearch/chart.aspx?branchID=7046 absolutely no individual configuration needed at production time. |
| mrburnzie:
--- Quote from: SiliconWizard on September 16, 2019, 12:13:28 am ---To begin with, if your ID range is 1-100, how is that going to work to get unique IDs for more than 100 boards (which is what 100+ would imply)? ;D And now that's settled, do you absolutely need to be able to set a specific ID for each board, or does it just need to be unique? In the latter case, my favorite approach is to use some kind of ID chip, like such: https://www.microchip.com/ParamChartSearch/chart.aspx?branchID=7046 absolutely no individual configuration needed at production time. --- End quote --- Haha, the testing would be done on 100 devices but it can go up to 300, so I didn't want to exaggerate :D This is a one time, custom thing. These devices should be configured once, but just to be sure I want to add an option to change the ID. I would like to have them labeled as numbers :) |
| MarkF:
Do they each have a micro-controller on them? Burn the ID into its EEPROM. Then have the program use the ID when receiving messages. The EEPROM can be changed independent from the program space. |
| mrburnzie:
--- Quote from: MarkF on September 16, 2019, 12:19:24 am ---Do they each have a micro-controller on them? Burn the ID into its EEPROM. Then have the program use the ID when receiving messages. The EEPROM can be changed independent from the program space. --- End quote --- Great idea! The thing is that I'm giving these devices to a client who has no experience with burning EEPROM :D I want to give the client the freedom to easily change the ID of each device. Btw. yes on the microcontroller. |
| Navigation |
| Message Index |
| Next page |