Where are people

It may be just me, but as a COMPLETE novice I am really struggling to get my head around the absolute basics (like what do you plug in/save where and in what order).

Postings are all well and good, but cannot hope to anticipate the point at which I am glazing over, or nodding enthusiastically as I have understood something. So the postings charge off into detail that is impenetrable...... but if there was someone around the corner I'd get started faster.

Is there any way of getting some sort of geographical distribution of contributors mapped out? There might be help next door, but there is no way of knowing.

I'm in Orkney and if there is anybody else out there who knows how to get started I'd REALLY like to hear from you.

 

glyn.hudson's picture

Re: Where are people

Hi Neil, 

Sorry to hear that you are struggling. 

Could I suggest the main OpenEnergyMonitor getting started guide as a good starting point: http://openenergymonitor.org/emon/guide. There si also a good overview of the modules we offer through the shop on our website http://megni.co.uk

If you are after module specific documentation see the modules section of if you are after more general electronics / microprocessor / physics background info see the 'building blocks' sections.

Maybe if you posted what you intend to setup of what you would like to achieve we could help you. 

Best wishes, 

Robert Wall's picture

Re: Where are people

Hi Neil,

I believe, if memory serves me correctly, that there is another forum member in Orkney. Maybe he'll see this and get in touch. If not, there are quite a few knowledgeable members around and as Glyn says, tell us what you have, and what you want to achieve, and we'll do our best to steer you in the right direction.

It would be a great help if people did say their geographical location in the "About" section of their profile, we'd then be able to make a decent guess about their electricity supply system - which can be quite useful to know.

Neil-K's picture

Re: Where are people

Glyn,

Thanks for your reply; I fear it is even more basic than the guide (which I had pored over several times before originally posting). It is better than it was when I last had a serious try to crack this a few months ago... and then gave up. However it still starts at about O-level when I am probably kindergarten!

You asked about projects: I was trying to get the heat pump monitor to work, but at the moment I really haven't a clue where to start. (I've ready John Cantor's piece, but it is above me for the moment) So I'd be happy to get the current clamp to work to begin with.

So from the top:

I have a EmonTx 868MHz, a NanodeRF SMT 868MHz, The USB loader, 100A sensor and 4 x DS18B20 temp sensors (I think I need 5, but will see if I get that far!)

I would like to be sure of 3 areas:

1. Is what I have got actually working (because I soldered the EmonTX up myself and don't really know if it is cooked anywhere)?

2. Nanode: I have plugged it into my home network hub with a CAT5 cable. When I plug in the loader (to the laptop USB) I get a blue LED on the loader and an alternating red and green flashing on the board adjacent to the loader pins. The network port LED also come on (hub light flashing in sync with the other ports) and one blinking LED and one fixed LED at the CAT5 socket on the board. (is this right so far?) I have nothing in the micro USB socket.

What do I need to do to get the Board active? I am assuming I need to load a sketch, but not really sure of which one, from where and where it should be stored. I understand it needs to be in a library, but I am not ABSOLUTELY sure of the structure needed or the files to be accessed. I am assuming the Nanode only needs software to pass the incoming wireless signal through the CAT5, so it does not care about what sensors are attached to the EMonTX.

So what happens to the data? How will I look at what is coming in? With what will I view the data?

Will the unit power itself from the CAT5 cable when it is running or do I need to provide a power supply? (if so what/how as I don't see the input opportunity (unless it is the micro USB)

3. The EmonTx. What sketches will I need to load to just use the 100A clamp? (and can it just plug into the jack socket 1 on the board, or do I need something else?) The same issues about what software and where to load apply, although I can see this has a 9V supply. I am expecting to power the EmonTx from this 9V source.

I am anticipating moving the loader over to the EmonTX  after the Nanode is up and running (or do I need a loader for each and keep them permanently attached - I am assuming not)

I am sure a lot of these are REALLY noddy questions, so answering them bit by bit would be real progress.

Thanks for your time,

Neil

 

Robert Wall's picture

Re: Where are people

OK, first: are you on Windows, Linux or Mac?

2. This indicates that the Nanode is basically working. The sketch (the program that you load into the Nanode to get it to do what you want) that flashes the LEDs alternately is a test sketch, so in due course you'll need  to get rid of that and load a different one.

1. You won't know whether the emonTx is fully working (i.e. the radio department is correct) until you have a working receiver. That's what the Nanode is (as well as other things). But you can set it up and test a lot of the functionality without that by using your laptop as a monitor.

So let's tackle this in small steps. Have you gone through Setting up the Arduino IDE? If not, do that first. If you're on Linux, when you get to "Installing Libraries and Firmware with your browser", follow the instructions. If you're on Windows, you need to follow the instructions on how to download but where you put the files is slightly different. On my machine I have a "Documents" directory. Under that, I have "OpenEnergy" in which are directories for the hardware, application notes, data sheets etc plus one called "Software". This is the "Sketchbook location" set in the Arduino IDE (Preferences). In Software I have directories for the emonTX V2, emonTx V3, Nanode, etc plus one called "libraries". It is there that I have dallas_temperature_control, EmonLib, jeelib, etc.

For now, don't do anything about installing Git. STOP immediately before and DON'T do "Installing Libraries and Firmware using git"

In the last step you did before you stopped, you should have downloaded and unzipped a whole directory full of subdirectories with names like "EmonTx_CT123...." These contain the sketches that you'll start with.

Let us know how you get on this far. To deal with a couple of the other points:

"Will the unit power itself from the CAT5 cable when it is running or do I need to provide a power supply? (if so what/how as I don't see the input opportunity (unless it is the micro USB)"

No, it needs a 5 V d.c. power supply which is what the micro USB is for. The same goes for your emonTx (if it is the older version 2 - look for the version number printed on the pcb in white ink). The old (V2) emonTx does NOT get its power from the 9 V a.c. adapter. That is only for measuring the mains voltage.

"I am anticipating moving the loader over to the EmonTX  after the Nanode is up and running (or do I need a loader for each and keep them permanently attached - I am assuming not)"

Having said the Nanode and probably the emonTx both need a 5 V d.c. supply - no they don't while they are plugged in to the "loader"/programmer. You don't need to keep the programmer or the computer connected once the whole system is working, and you can swap from one to the other. A tip: mark the programmer and the sockets with a blob of paint at one end so that you don't accidentally get it the wrong way round.

3. We'll get on to this in the next step.

Neil-K's picture

Re: Where are people

Glyn,

I do appreciate your time on this so here goes:

I am using Windows.

I believe I have set up the Arduino as required (but only think so). I attach a screen shot of the directory structure. I HAVE got the 'Library set up the same way. Glad of any suggestions to change. (I think I may have duplicate directories of some directories such as 'CP210x_VCP_Windows' and 'emonTxFirmware-master'- in which case I propose deleting those with a bracketed suffix.

I seem to have a 'download' directory which contains the Nanode info, but I do not seem to see it elsewhere. This was all downloaded some time ago and I don't seem to have written notes on what I have done, so if it needs wiping and starting again then there is nothing lost.

I do seem to have the FTDI USB drivers which I understand is for the programmer?

I am not sure about the EmonTx_CT123 set of files,

Thanks for clarifying the role of the micro USB and the 'non-use' of the jack socket. In terms of power: when I have uploaded sketches to the Nanode and the EmonTX, do they need to be continuously powered? i.e. can I set them up through the PC and then take them to another location and then power them up with the 5V Micro USB? Will they hold the programme in transit, or do I need to be programming them IN their final location and keeping them continuously powered (as we get power cuts here)

Neil

 

Robert Wall's picture

Re: Where are people

Hi Neil, how did you get on with the storm? (BTW, I'm not Glyn!)

You've got your Arduino IDE in "My Documents". Mine is under "Program Files" but that shouldn't matter, so long as the file association points to the right place (i.e. you click on a .ino file it should start the IDE). You do have a lot of duplicate directories, I guess you downloaded the files several times to do that, so it would be a good idea to find which is in use and delete the unused ones. My CP210... directories have been moved to off-line storage as they're not needed once you have installed the drivers. These are indeed the FTDI drivers that enable the IDE to talk over the USB interface to the programmer.

The emonTx files you are going to need are inside the directory emonTxFirmware-master (and you can delete the second copy of that too).

So that you don't get the Emon stuff mixed up with everything else, I suggest you make an OpenEnergyMonitor directory beneath "Arduino", then move all the OEM subdirectories into there, that is emonTxFirmware-master, NanodeRF-master and any others but not Jeelib nor lame.

Now it is in there - your new OpenEnergyMonitor directory - that you need to make a directory "libraries" (in addition to the one under "Arduino") and into this new one you need to move jeelib-master, and you must rename it to "jeelib". Also in the new "libraries" directory you must have the other libraries that OEM sketches need, e.g EmonLib. The reason for two libraries directories is the Arduino one gets updated when you update the IDE, and it's easier if the OEM one is separate.

The sketch is held in EEPROM in the EmonTx so it'll stay there indefinitely once loaded, power or no power. So no worries there.

So I suggest you straighten out your directory structure, then have a look in the emonTxFirmware-master directory and there you should find a directory emonTx_CT123_Voltage and inside there two files. Double-click on emonTx_CT123_Voltage.ino and it should open in the Arduino IDE on the first tab, and the second file emontx_lib.ino should automatically appear on the second tab. (If it doesn't happen, you need to run the Arduino IDE directly and in "File" > "Preferences" make sure "Automatically associate .ino files with Arduino" is ticked.) Also in the IDE in "File" > "Preferences" set the "Sketchbook location" to your new OpenEnergyMonitor directory. Click "Tools" > "Serial Port" and you'll probably have "COM3". Plug in your USB lead with the programmer and emonTx, click "Tools" > "Serial Port" again and check that "COM4" (or a new port) has appeared. Select the new port. Now try uploading the sketch. That's "File" > "Upload" or the right arrow icon, or Ctrl-U. If it says "Compiling sketch..." and does it, then "Binary sketch size: 9,808 bytes (of a 32,256 byte maximum)" then "Uploading", then "Done uploading", you're in the money. But don't celebrate, the sketch won't work totally because the radio frequency is wrong. If however after compiling you get the dreaded "avrdude: stk500_getsync(): not in sync: resp=0x00", then there's a problem communicating with the emonTx.

Let's see how you get on with that.

 

Neil-K's picture

Re: Where are people

Robert (oops, sorry on the name)

Thanks for the hand-holding.

I've followed your instructions and got as far as loading. It came back telling me that  ''sleepy' has not been declared.' having highlighted the line beginning 'include jeelib.h.....

 

Neil

 

Robert Wall's picture

Re: Where are people

What is that trying to tell you? In fact, can you find the file jeelib.h? More importantly, can it find the file jeelib.h? Without seeing the whole error message (and that would allow me to explain it to you), I suspect that's what has happened. Have you now got the directory structure I outlined, did you rename jeelib?

[Edit] Having just done a little experiment - no you haven't (apparently) got the directory structure correct, or you missed setting the sketchbook location in the IDE Preferences. The "libraries" directory needs to be a subdirectory of that Sketchbook location, as does any directory (or subdirectory thereof) containing your sketches.

Neil-K's picture

Re: Where are people

Robert,

There IS a file called Jeelib.h in the 'OpenEnergyMonitor/Libraries/Jeelib directory. See attached screen shot of the error message and then the directory structure.

I think I have the directory structure as specified.....

 

I tried copying and pasting the error message into the mail, but it came back warning of a spam filter. I am assuming this is to protect the forum?

Neil-K's picture

Re: Where are people

Robert,

 

Sorry, when I was looking at your posting I didn't see the 2nd para.

Bear with me while I digest it and I'll come back to you tomorrow. Wife is making clucking noises about me being on the PC on Boxing day night!

 

Neil

Robert Wall's picture

Re: Where are people

That's only the tail end of the error message - you always need to start reading error messages from the top (and yes, I blame the IDE for leaving it like that and not scrolling back to the top).

I tried changing the path in the IDE Preferences, and then I get a similar message, so I still think it can't find that file.

This is (part of) my structure.The highlighted "Software" directory is the "Sketchbook location".

(And it should accept screenshots - I'll have a go with my non-privileged account and check in a minute).

Robert Wall's picture

Re: Where are people

It accepted that screenshot again after a capcha. (Then I deleted it.)

Neil-K's picture

Re: Where are people

Robert,

I have made a right hash of this, so I am minded to delete the whole lot and start again. Any tips before I do so?

I am planning on simply deleting the arduino directory and the contents of the download directory and starting again.

 

Robert Wall's picture

Re: Where are people

I think that's going to be the safest way to clean up. Don't worry.

I like to keep programs entirely separate from my data. The latter gets backed up, programs don't, but I do keep the installation files / distribution zip files offline, so I can reinstall from that without the need to download. I also like to keep things reasonably organised and compartmentalised (but I frequently fail!). So what follows is based on that.

Tips:

1. Read through the "Setting up the Arduino Environment" and all the installation instructions and figure out exactly what you are downloading when. Make notes on paper and don't download anything until you're reasonably happy and you've decided where you want to put things. Re-read my post of Sun, 22/12/2013 - 17:42. and my subsequent ones. Decide on a structure for how you want to organise yourself:

2. I suggest you should put the Arduino IDE where the rest of your programs are in "Program Files" [but you don't have to.]

3. I suggest you should have a separate directory for all your OEM stuff as a child of "My Documents". In my case in "OpenEnergyMonitor" I've got hardware (PCB layouts and diagrams), BB articles, test reports, design calcs, data sheets, app notes etc; and a "Software" directory - as per the screenshot above, though you can only see a tiny fraction of the parent "OpenEnergyMonitor" - "Single Supply" and "SMT EmonTx" are the only two subdirectories of it that you can see.

If you like that (it works for me, it might not for you!):

4. Delete (or rename) all the Arduino-related stuff. Remove the drivers (it probably isn't necessary, but you'll feel happier starting with a clean slate).

5. Install the Arduino IDE.

6. Install the drivers.

7. Make your "OEM" directory and a "Software" subdirectory of it and subdirectories of that for the libraries, emonTx, Nanode. i.e.
      My Documents
            OpenEnergyMonitor
                     Software
                           libraries
                           emonTx
                           NanodeRF

                    [*Data sheets]
                    [*Build instructions]

[*these are at your discretion]

8. Download all the libraries listed in Installing Arduino Libraries and put them in this "libraries". Remember to rename "Jeelib-master" to "jeelib". That should give you something like what I've got under "libraries".
    Download emonTxfirmware master (.zip) and extract the contents into "emonTx".
    Do the same for NanodeRF into "NanodeRF".

9. Run the Arduino IDE and set "Sketchbook location" to "....\My Documents\OpenEnergyMonitor\Software"

10. Cross fingers, load an emonTx sketch, connect up and give it a go.

Robert Wall's picture

Re: Where are people

[For info for anyone reading this thread, Neil decided to remove the Arduino software and reinstall anew, following the structure above.]

Neil-K's picture

Re: Where are people

....... and as a result it worked! My sincere thanks to Robert for his patience.

Neil

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.