Here are Chip McClelland’s latest Trail Counter and Solar Charger boards, together with a shot of the stainless steel stencil now offered by OSH Stencils. The metal stencil makes it hugely easier to get perfect pasting and confirms that the curve that comes with polymide stencils has been at least one root cause of that type being so challenging to use. There was no paste bleed through to the back of the stencil, and the fine pitched power controller and Simblee BLE chip lands were perfectly formed. To get a sense of the cost difference some existing board specs were plugged into the OSH Stencils web site: a roughly five square inch battery charger, a three square inch decade counter/divider, and sub-square inch 6-axis breakout board. The steel stencils would be almost exactly double the cost of polymide, averaging about $12 each. By the way, multiple PCB designs can be grouped within one stencil. This can greatly reduce the cost difference depending on the areas involved.
These are OSH Park boards: very deep blue/purple, sitting on a sky blue antistatic mat. This is a tradeoff with the very bright, high color temperature LED flood lights used to illuminate the bench.
I have been working on this IOT thing for a while and wanted to share some details of my latest project. In using the data loggers, I have found that just as I need to be able to use different sensors, I also need to be able to support different methods of recording and reporting data. My first data logger used a MicroSD card for disconnected data collection. Then, I built a version which connected using a cellular network. For this next version, I used WiFi.
I started this project using the Atmel 328p but soon came to a realization, with WiFi, I needed more working memory and would need a more powerful chip. After some trial and error, I decided to use the wonderful Teensy 3.1 from PJRC. This is an Arduino compatible ARM processor with much more memory and speed.
The basic build contains the following components:
The basic idea is that this board will connect to GPS, obtain a GPS fix and report its location to Ubidots. Ubidots can then display this information in a number of ways including showing the location and the number of times the sensor had been moved that day as the dashboard below shows:
Here is the carrier board in detail:
Here is what the basic board looks like:
And here it is inside its protective Pelican case:
I have posted the firmware sketch and the carrier board Design files to my Github repository.
I incorporated a very cool battery monitoring approach using a P-MOSFET to allow the data logger to monitor battery voltage and report it to Ubidots. While not as good as true fuel gauge, it should be easy to implement across various power sources. Thanks to Shane Trent for sharing this circuit on his excellent FET Tricks Blog. I have yet to implement this in the firmware but will leave that you to.
I have put some potentiometers and a momentary contact switch (held high) on the board for future use. One plan I have for the switch is to test for a button press at startup to select the WiFi network to use. The potentiometers are intended to adjust the sensitivity and reporting interval for the logger.
I added extra connections for power management – you should be able to turn off the WiFi and GPS modules to save power between reporting. The Teensy can be put to sleep as well and the accelerometer can wake it with the provided interrupt connection.
I also included the battery holder and header pin for using the Teensy’s integrated real time clock. You only need to add the battery and solder a crystal on the underside of the Teensy. This would enable you to set a regular reporting interval even if no movement is detected. Full instructions are provided here.
I hope this information is helpful. Please leave comments or contact me if you have questions. Also, you can follow me on Twitter @chipmc86 to hear about more over time.