===== Prototyping ===== * MCU: Freescale KL25z - ARM Cortex M0+ Dev Board * Programmed with the [[https://mbed.org/|mbed compiler]] * Radio: HopeRF RFM22B ==== Gateway Node ==== {{wiki:philcrump_gateway_gen1.jpg?200|Gateway Node with Pi }} Live Telemetry: [[http://www.ukhas.net/nodeInfo?id=13|Node 'P0']] The gateway node is piggy-backed onto a Raspberry Pi to provide the upload of packets to the API. A DS18B20 temperature sensor is also attached to provide a temperature reading of the room. The node code copies the packets that it hears (and its own beacons), to one of the serial ports that is connected to the Pi's UART (/dev/ttyAMA0). I then run a python script ([[https://gist.github.com/philcrump/8979311|ukhasnet-upload.py]]) on the Pi to receive the packets from the node, and upload them over HTTP to the [[api|ukhas.net API]]. ==== Outdoor Node ==== {{wiki:philcrump_outside_gen1_closed.jpg?300|Outside node in closed box }} Live Telemetry: [[http://www.ukhas.net/nodeInfo?id=14|Node 'P1']] This node runs off of a 3.7V 2Ah LiPO battery and has 2x 5.5V 200mA solar panels to provide charging. A cheap USB LiPO charger is used to regulate power from the solar panels, and an MCP1703 3.3V regulator on a re-purposed HAB Tracker board is used to provide a stable 3.3V supply to the MCU and Radio. A DS18B20 is attached and located outside the box to provide a temperature reading. A 2:1 resistor divider also allows measurement and reporting of the current battery voltage. //The solar panels are not proving sufficient to charge the battery with the current weather, so this node is brought inside for a short period to be charged up every few days.// {{wiki:philcrump_outside_gen1_open.jpg?350|Outside node opened up}} The NiMH AA cells in the bottom are simply to provide weight to stop the box being blown away! The scrunched paper stops the weight from shifting around. The LiPO is the silver and yellow unit under the black regulator board in the center. ===== Production ===== * MCU: Freescale KL25z - ARM Cortex M0+ Dev Board * Programmed with the [[https://mbed.org/|mbed compiler]] * Radio: HopeRF RFM69HW The second generation uses the newer (and hopefully more reliable) [[radio_hardware#RFM69HW|RFM69HW]] Radio Module. For this I am in the process of taking [[https://github.com/LowPowerLab/RFM69/|Low Power Labs' RFM69 Arduino Lib]], stripping it down to just what we need, and putting it into the structure of the existing [[http://mbed.org/users/charly/code/RF22/|mbed RF22 Lib]]. ==== PCB ==== I have designed a 'shield' PCB to sit on the KL25z dev board to support the RFM69, Lipo Charger and 3.3V Regulator. The PCB also provides an SMA socket for the 868MHz antenna, a standard LiPo socket, headers for a 5-6V solar array, and a microUSB socket for easy desktop charging. 3x footprints for DS18B20 connections are also provided. **Gerbers:** [[http://gerblook.org/pcb/LTbRwHds2aoXhtAfXv4pwK|GerbLook]] - //Sent off for manufacture!!// **BOM:** * 1x RFM69HW FSK Transceiver * 1x MCP1700 3.3V LDO - [[http://uk.farnell.com/microchip/mcp1700-3302e-to/ic-v-reg-ldo-250ma-to-92-3/dp/1296588|Farnell 1296588]] - [[http://ww1.microchip.com/downloads/en/DeviceDoc/21826b.pdf|Datasheet]] * 1x MAX1555 LiPo Charger - [[http://uk.farnell.com/maxim-integrated-products/max1555ezk-t/charger-batt-li-usb-ac-5sot23/dp/1628222|Farnell 1628222]] - [[http://www.farnell.com/datasheets/1675715.pdf|Datasheet]] * 7x 1uF 0805 Capacitors - [[http://uk.farnell.com/murata/grm21br71e105ka99l/cap-mlcc-x7r-1uf-25v-0805/dp/1828830|Farnell 1828830]] * 2x 1000uF Reservoir Capacitors - [[http://uk.farnell.com/panasonic/eeufm0j102/cap-alu-elec-1000uf-6-3v-rad/dp/1219447|Farnell 1219447]] * 3x 100K 0603 Resistors - [[http://uk.farnell.com/yageo/rc0603fr-13100kl/resistor-thick-film-100kohm-100mw/dp/2309107|Farnell 2309107]] * 1x Molex MicroUSB - [[http://uk.farnell.com/molex/47346-0001/micro-usb-type-b-receptacle-bottom/dp/1568026?Ntt=1568026|Farnell 1568026]] * 1x JST 2mm 2way - [[http://uk.farnell.com/jst-japan-solderless-terminals/s2b-ph-sm4-tb-lf-sn/connector-header-smt-r-a-2mm-2way/dp/9492615|Farnell 9492615]] ==== PCB V2 ==== **TODO:** * Remove 2x Large Reservoir capacitors - not required * USB Vcc connected to USB Vin on KL25z board - will also charge from KL25z USB sockets. * Use larger SMA socket footprint - For UK-available parts * Add jumper to switch off KL25/Radio supply from lipo/charger - allow switching off/isolating lipo charging * 40mA Precharge Current for dead lipo was barely enough to power board, let alone charge the Lipo as well.