I'm looking to build a system that will report back GPS coordinates of some of the equipment & machines that my company owns. We're in construction and have many machines(200+) spread out between many different projects. My thought is to put main units on a few of the company trucks that travel between the jobs a lot. The units on the equipment would just be a simple moteino with a radio and would simply respond with a unit number. I'd want to put them in some sort of a magnetic puck or something that could be easily moved. I'd assign the units to machines in my online system. The main units would have a celluar GSM & moteino w/radio that would send out a request to the units on the machines.
My questions:
1) how long could I expect the battery life to be and what should I use for batteries?
2) I'm located in Wisconsin. What would be the best of frequency radio to use?
3) Any ideas for a housing for the simple "puck" units?
4) What would be the best radio option for range?
Thanks!
1) Decades on 2xAA Energizer Ultimate Lithium batteries if you remove the LDO from the Motes, sleep them often and just have them wake periodically (once an hour?) to broadcast out a "here I am" pulse
2) 915MHz in the US
I think the way to set up your network is to have the GPS/cell units on things with big batteries that would never notice a constant 40mA load and then put bare Motes on smaller things like compressors and blast pots for instance. The smaller units could easily run 10+ years on a pair of AAs if you slept them appropriately.
I was thinking that they could be on listen mode constantly. The main units would initiate by periodically sending out a signal every few minutes and the machine units would respond with a unit #. The main units are on trucks that come and go in a short period of time from our projects . I could have the machine units sleep for a while after they answer to prevent them from constantly responding. How would that impact battery life?
I think some folks here have had long term problems with listen mode. Does the equipment set change so rapidly that a TX every 5 minutes wouldn't be recent enough?
lbjstetson,
May I add some thoughts based on the description/requirements.
For best battery life, I would recommend having the units transmit their location at a constant rate, rather than add the complexity of having to ping each node, which would need to be awake all the time to receive the ping.
I think even with default settings the RM69HCW (with ATC) can give you plenty range while keeping cost down (LoRa radios are more expensive). The 915mhz is for the US as ChemE suggested.
For antennas you might require external mounted antennas - uFL to coax to case SMA to antenna. Dipoles might be the best - and see captcha's thread (https://lowpowerlab.com/forum/rf-range-antennas-rfm69-library/easy-pcb-dipoles-for-433-868-and-915mhz/) about PCB dipoles.
It sounds like each location would have a central unit (with the GSM module/gateway?) which would handle the data gathering at that location?
Are units being monitored while in transit from one location to another, or do you only care to see them when on a site that has the GSM gateway?
Felix:
All that the nodes will need to report is a unique ID, 5 digits would probably be plenty. I'll assign them to machines and equipment in my equipment location app. I'm planning on having the location come from the central unit since they'll have a cellular gsm with GPS anyway. How long could the battery last if they sent out their pings every 5mins or so? I could have it sleep for a few hours when they receive a response from the central unit. We have a fuel truck which goes to our jobs every day but it's only on the jobs for 20-30mins so I'd want to have the nodes reporting fairly frequently. If it works well, I could put central units on other trucks (quads,semis,etc) in order to get more frequent location updates.
I'd probably want to go with the LoRa radios for a few bucks more per unit if the range would be better.
Would pcb dipoles like that be able to be placed on the top of a truck?
Correct, the central units would collect the data and transmit via gsm every 15 minutes or whatever seems to work best.
Are there any guides for making a good weatherproof housing and securing the mote inside of it?
ChemE:
Every few minutes would probably be fine. That'd give the nodes a few chances to make contact per vehicle visit. What would that do to battery life? Thanks for the advice, btw.
-----
This is unrelated to everything above but I have a mote based sensor network in a field right now with about 35 nodes and we're having issues with units needing to be manually reset when we move them. Right now the motes are loose in a simple case, see photo below.
Probably easiest to consider the various functions of an equipment node separately. I'll assume we wake every 32 seconds to broadcast w/o asking for an ACK. If there is a collision, they will rebroadcast again in 32 seconds.
Sleep current if you remove the LDO is 4,400nA
Active time while the uC is speaking SPI to the radio is 10nA
Broadcasting (assumes 300kbps) is 326nA
Total average current across one 32 second cycle is 4,736nA
2xAA L91s at such a teeny tiny current have about 3,400mAh or 3,400,000,000nAh of capacity.
3,400,000,000nAh / 4,736nA = 717,905h = 82 years
In truth the self discharge rate of the batteries will trim this to 10-20 years but you get the idea!
Ok, excellent. So basically, I don't have to worry about battery life. Thanks!
Quote from: ChemE on August 15, 2017, 05:08:12 PMI think the way to set up your network is to have the GPS/cell units on things with big batteries that would never notice a constant 40mA load and then put bare Motes on smaller things like compressors and blast pots for instance. The smaller units could easily run 10+ years on a pair of AAs if you slept them appropriately.
The problem is that if I were to connect to the main battery, I'd likely get in trouble whenever there was a battery issue regardless of whether or not my unit could possibly be the culprit. I really want to avoid that. We recently had a OBDII plugin GPS tracking unit that caused a truck to not shift above a certain gear.... don't ask me how because those things aren't supposed to impact anything like that.
You might need to look at FCC compliance here, for commercial things that is probably the elephant in the room.
Mark.
He won't be close to 1% duty cycle but you think that frequency hopping might also be required?
To be clear, these would not be sold but used by my company.
lbjstetson,
For LoRa you will have to use a 3rd party library - RadioHead is the popular one, see this page (https://lowpowerlab.com/guide/moteino/lora-support/) for getting started with that. I am sure there are plenty of examples on the web on how to better utilize that library. I would personally start with a pilot using RFM69HCWs and see how that does.
The antenna is important especially in mobile applications like yours. RF does not like enclosures, especially metal. Any antenna will love to be elevated as much as possible, with no obstacles in the line of sight, keep as much to that principle as possible to maximize the chance to receive packets.
I would not go to 300kbps in real practice except when range requirement is minimal or for short range wireless programming. I think the default 55.5K is good, and perhaps if the question comes, you can lower it to 19.2k or even lower.
To maximize battery life you need to sleep everything inside the mote that might use power, when the mote is not in use. There are various ways to monitor battery life. The simplest is a voltage divider to bring the battery voltage under the 3.3v operation of the Moteino, and read that on an analog pin. Several examples in the RFM69 library (motion mote is one).
I would not focus too much on removing the LDO at the moment, that will save you 2uA and I think your effort is better spent elsewhere.
Make sure to sleep the FLASH MEM chips as well since I see you have that in the photo.
I do NOT recommend powering a Moteino or any electronics straight from a car battery, it can be damaged by unregulated spikes and transients during cranking.
For enclosures, look around in the projects forum (https://lowpowerlab.com/forum/projects/) for inspiration, there have been lots of great examples how people got creative with cases in various projects. I think it's easier to develop your motes around an existing case rather that the reverse. Choose a case that makes sense, there are lots of possibilities. Perhaps choose one with a rubber ring top that mounts with screws. You can mount your 3xAAA or similar power pack on the top with velcro or hot glue, for the RF use coax cable pigtail of 1/4 wavelength to route the signal from the mote to a panel mount SMA (you can find some on ebay precut to length). Then use external mounted antenna with matching SMA mount.
This is a pretty cool project which uses a piezo transducer to detect vibration of a vehicle and send GPS location via GPRS/SMS using the SIM5320e module.
It's hooked to an arduino that sleeps most of the time, and only wakes on vibration, and also controls the power to the SIM module via a mosfet. Nice implementation.
https://www.youtube.com/watch?v=CeStrH-5Llo
Quote from: Felix on August 17, 2017, 05:53:42 PM
This is a pretty cool project which uses a piezo transducer to detect vibration of a vehicle and send GPS location via GPRS/SMS using the SIM5320e module.
It's hooked to an arduino that sleeps most of the time, and only wakes on vibration, and also controls the power to the SIM module via a mosfet. Nice implementation.
https://www.youtube.com/watch?v=CeStrH-5Llo
Interesting. I recall a company that pitched me on devices that tracked operating hours for machines based on vibration. It reported in a similar way that I'm hoping to make my system work so there was no monthly charge per unit. There are tons of companies out there offering equipment tracking but they all seem to be cellular on the $15/mo or more schedule plus you have to hook them into the machine's electrical system somehow. When you're talking 200 or more units, that's a lot of money.
Quote from: Felix on August 17, 2017, 12:29:58 PM
For LoRa you will have to use a 3rd party library - RadioHead is the popular one, see this page (https://lowpowerlab.com/guide/moteino/lora-support/) for getting started with that. I am sure there are plenty of examples on the web on how to better utilize that library. I would personally start with a pilot using RFM69HCWs and see how that does.
Gotcha. I didn't know that there was any other difference than the cost and maybe the antenna. I'm pretty new and inexperienced yet on electronics and hardware, I'm a web developer.
Quote from: Felix on August 17, 2017, 12:29:58 PM
The antenna is important especially in mobile applications like yours. RF does not like enclosures, especially metal. Any antenna will love to be elevated as much as possible, with no obstacles in the line of sight, keep as much to that principle as possible to maximize the chance to receive packets.
I plan on using antennas and running the cable through a cable gland into the box. For the GPS/GSM units, I plan on using a magnetic combo antenna similar to THIS (http://www.tuskembedded.com/gps/au-3s/). I see the article you posted about PCB antennas. What's a good way to make those weatherproof?
Quote from: Felix on August 17, 2017, 12:29:58 PM
I would not go to 300kbps in real practice except when range requirement is minimal or for short range wireless programming. I think the default 55.5K is good, and perhaps if the question comes, you can lower it to 19.2k or even lower.
To maximize battery life you need to sleep everything inside the mote that might use power, when the mote is not in use. There are various ways to monitor battery life. The simplest is a voltage divider to bring the battery voltage under the 3.3v operation of the Moteino, and read that on an analog pin. Several examples in the RFM69 library (motion mote is one).
I would not focus too much on removing the LDO at the moment, that will save you 2uA and I think your effort is better spent elsewhere.
Make sure to sleep the FLASH MEM chips as well since I see you have that in the photo.
Ok, I'll keep these things in mind when I'm working on my prototype.
Quote from: Felix on August 17, 2017, 12:29:58 PM
For enclosures, look around in the projects forum (https://lowpowerlab.com/forum/projects/) for inspiration, there have been lots of great examples how people got creative with cases in various projects. I think it's easier to develop your motes around an existing case rather that the reverse. Choose a case that makes sense, there are lots of possibilities. Perhaps choose one with a rubber ring top that mounts with screws. You can mount your 3xAAA or similar power pack on the top with velcro or hot glue, for the RF use coax cable pigtail of 1/4 wavelength to route the signal from the mote to a panel mount SMA (you can find some on ebay precut to length). Then use external mounted antenna with matching SMA mount.
How about pelican cases? I know they're a little bit pricey but I'm tired of ordering them online only to see that the rubber gasket looks cheap. The per unit cost isn't super important to me.
I've been having some issues with condensation in some of my other cases. How do I prevent that from screwing up my units?
Quote from: lbjstetson on August 18, 2017, 08:51:13 AM
I've been having some issues with condensation in some of my other cases. How do I prevent that from screwing up my units?
There was some very good discussion here (https://lowpowerlab.com/forum/projects/best-way-to-prep-your-project-for-outdoors/) on this subject.
Quote from: Felix on August 17, 2017, 05:53:42 PM
This is a pretty cool project which uses a piezo transducer to detect vibration of a vehicle and send GPS location via GPRS/SMS using the SIM5320e module.
That is a cool project but a sleep current of 3mA seems crazy high. The piezo produced spikes of 0.5V. If I understand correctly, the interrupt will trigger at +1.65V right (half of the board voltage)? Seems like one could just use a transformer to boost that voltage passively and get the sleep current back down to 6uA like it should be. Maybe is was 3mA because he choose a horrible LDO...
Not zero but it did occur to me that an accelerometer board I just bought and have yet to play with can generate interrupts.
https://cdn.sparkfun.com/datasheets/BreakoutBoards/ADXL362.pdf
This gets the sleep current down to 270nA and eliminates a good amount of complexity from the project Felix posted. This would allow an unmodified Moteino to sleep on 2.5uA most of which is the MCP1702!
EDIT: Just hooked everything up and slept the radio and the uC forever. I'm measuring 1.9uA for a sleeping radio, uC, and ADXL362. Current jumps to the tens of uA as soon as I tap the ADXL362 so it does appear to be sensing impact within that minuscule power budget.
EDIT2: And 1.7uA when run from a set of 2xAA Energizer Ultimate Lithium batteries currently at 3.37V.
lbjstetson,
Pelican cases (google search) seem too bulky and overkill for what you need. I would keep these as small as possible.
I looked at some GSM units and there are 2 I think could do the job and have GPS and GSM/GPRS bundled in 1 unit: the SIM808 (2G) and SIM5360A (3G) the latter being more expensive. You can find these on various breakouts - seems like adafruit's variants could be pretty good for what you need.
These will require a GPS antenna and GSM antenna. Then if you have the RFM69/LoRa radio, that has its own antenna. So 3 antennas in total for the gateway. The rest of the units just have the RFM radio, so 1 antenna.
The tricky part with these is the GPS units may have different capability and time to get a location fix, and require different types of antenna (passive for the 808 and active for the 5360 for best performance) seems like the SIM808 can take a while to fix location and 2G being slower GSM/GPRS could also take a while to send data, which impacts your battery life.
For the PCB dipoles I don't think they require water proofing. In fact you would likely want those exposed since soldermask protects the copper and wrapping them in anything starts to attenuate them. They could mount directly ontop the enclosure with a matching SMA connector soldered directly on them. They are probably cheap enough to scrap if they do get damaged over time.
ChemE,
The GPS/GSM project I linked was more for reference, and indeed the 3mA sleep seemed way too much. But I thought it might be of inspiration in some ways.
Cool about the ADXL362, I wonder if the ADXL could sense loud noise/alarms like beeps from a fire alarm :)
Quote from: Felix on August 18, 2017, 10:55:28 AM
Pelican cases (google search) seem too bulky and overkill for what you need. I would keep these as small as possible.
They make some smaller ones that would be about the right size. Here (http://www.pelican.com/us/en/product/watertight-protector-hard-cases/micro-case/standard/1060/). They have smaller models also.
Quote from: Felix on August 18, 2017, 10:55:28 AM
I looked at some GSM units and there are 2 I think could do the job and have GPS and GSM/GPRS bundled in 1 unit: the SIM808 (2G) and SIM5360A (3G) the latter being more expensive. You can find these on various breakouts - seems like adafruit's variants could be pretty good for what you need.
I'm already using 808 for another project and it seems to work pretty well, though the cell network isn't great which is important. I plan on testing a few different GPS modules for the nodes. I was looking at Adafruit's Ultimate GPS Breakout but it looks like it might be overkill.
My budget right now for the first few units is about $120 for each node and $200 for the GSM unit. I think I'm pretty comfortable with those numbers.
Quote from: Felix on August 18, 2017, 10:55:28 AM
These will require a GPS antenna and GSM antenna. Then if you have the RFM69/LoRa radio, that has its own antenna. So 3 antennas in total for the gateway. The rest of the units just have the RFM radio, so 1 antenna.
The tricky part with these is the GPS units may have different capability and time to get a location fix, and require different types of antenna (passive for the 808 and active for the 5360 for best performance) seems like the SIM808 can take a while to fix location and 2G being slower GSM/GPRS could also take a while to send data, which impacts your battery life.
I'm not really concerned about battery life on the gateway. I'm planning on using a battery that'll recharge when the vehicle is on via the cigarette lighter slot. I could also use a solar panel to recharge the battery which might be a better option since I wouldn't have to run wires.
Quote from: Felix on August 18, 2017, 10:55:28 AM
For the PCB dipoles I don't think they require water proofing. In fact you would likely want those exposed since soldermask protects the copper and wrapping them in anything starts to attenuate them. They could mount directly ontop the enclosure with a matching SMA connector soldered directly on them. They are probably cheap enough to scrap if they do get damaged over time.
Ok, excellent.
Thanks for all of the advice, it has been a big help. I'll be sure to post pictures and give updates when I get approval to start testing.