Hello All,
I am attempting to set up a second EmonTH sensor and I understand I need to change the default node id from 19. I am not quite sure I understand how to do this. Am I able to do this through my raspberry pi or do I need to do this in a different manner?
Thank you
Re: Changing Node id on EmonTH
You will need to change the node ID on the emonTH by using the Arduino IDE to re-upload the firmware with a changed node ID. The firmware is here.
Do you have a FTDI USB Programmer to upload the firmware? If not, you will certainly need one.
There is further information about how to do this here.
Paul
Re: Changing Node id on EmonTH
Paul,
Thank you for the response. I do not have a FTDI USB Programmer yet, I will add that to my Christmas wish list :)
Re: Changing Node id on EmonTH
Would it be worth adding a possibility to set the Node ID from the hardware without reflash ?
It does not have to be a real switch, it can be a jumper, or even a spot where the user would add a bit of soldering. (Like in the emonTX v1, to choose between 3V and 5V.)
Two jumpers would allow and end user with no programming skills and no FTDI programmer to use 4 emonTH in parallel.
Just a thought, not a request.
Re: Changing Node id on EmonTH
I think that's the direction new hardware is going, the new emonTx v3.4 has 2 dip switches,
What maybe the cheapest and easiest option would be to have 2 (or more) thin tracks (away from anything critical) that can be cut/broken to change the node id with out even a soldering iron.
Paul
edit - or perhaps like the emonTx v2 temperture sensor 3/5v selection pad that accidently had a whisker of track connecting them, that could easily be removed with a knife and can also be bridged with solder if you change your mind
Re: Changing Node id on EmonTH
Please, please use dip switches. Cutting tracks isn't for most users.
If necessary sell the hardware with or without the switches, then the folks that want to keep things minimal can simply make the relevant connections to get the appropriate code.
Many (too many years ago) we were doing this on 8051 controller based systems for reconnaissance. The hardware as it booted up knew what type of camera it was connected to and ran everything accordingly. Think we called them personality connectors.
Not sure if there is the space on the Atmel but you could easily have one image that could be loaded and would manage an emonTH or an emonTX based on the switch settings as well as knowing what node id and any other critical settings, e.g. frequency. Of course you'd need enough I/O as well!
Re: Changing Node id on EmonTH
Im following up on my earlier question. I now have my FTDI USB Programmer. Newbie question, do I remove the black cover at the end in order to connect with the emonTH or do I need an additional cable? Thanks
Re: Changing Node id on EmonTH
Your programmer should look like this:
http://shop.openenergymonitor.com/programmer-usb-to-serial-uart/
and you shouldn't have anything to remove on it. In fact, I don't know what you refer to as a "black cover". Maybe yours is different.
On the left of the picture, you see a mini-USB socket. You need a cable to connect that to your computer.
The part on the right is plugged on the board in the emonTH. Be careful to put it the right way: match the GND inscriptions on the programmer and the board.
Re: Changing Node id on EmonTH
Jerome,
Thanks for the response, I understand now.
I have installed the Arduino IDE, I believe my next step now download the firmware from github? https://github.com/openenergymonitor/emonTH/tree/master/emonTH_DHT22_DS18B20
What is the best way to go about doing this?
[Multiple duplicates of this post have been deleted. Moderator (RW)]
Re: Changing Node id on EmonTH
Jerome,
Thank you for the help, I understand now.
I have downloaded the Arduino IDE and associated libraries to upload the firmware with the new nodeID. However I am getting this error:
Re: Changing Node id on EmonTH
Have you downloaded all of the relevant libraries?
http://openenergymonitor.org/emon/buildingblocks/setting-up-the-arduino-...
Paul
Re: Changing Node id on EmonTH
Paul,
I believe I was missing the DHT sensor library. I caught it but didn't get back here quick enough to update my question. Thank you for your help, I appear to have my second emonTH running under a new node ID.
Thank you all!
-Patrick