Based on the work of Ibenson with the TLG10UA03, I've developed a generic PCB to allow building fully engineered web accessible monitoring and controlling applications.
The sample code provided in the next post is designed to work on an AXE401 for development rather than the version for the PCB but the only differences are the port assignments.
The example code uses one DS18B20 as a remote thermostat. The themostat temperature can be set remotely and the web page displays the current temperature as well as the max/min which can be reset remotely. The code uses serin/serout to talk to the UART but the PCB connects using the HW RX/TX pins so hardware serial comms can be used as required.
The PCB takes a 20 pin picaxe and allows direct connection of the TLG10UA03 wifi card and has up to 6 off 3-pin ports for flexible I/O (input or output with optional pullups and series resistors) as well as a 4-pin i2c port with built in pull-ups. The ports have power and ground supplied. The board uses one of the cheap and readily available LM2596 Low Ripple DC-DC Converter Step Down Power Supply modules which can be set to the preferred bus voltage, 3.3V in the case of boards using the TLG10UA03 wifi card, allowing the use of any DC supply up to 40V without worrying about overheating a linear regulator. All components are through hole except the resistors where the large ansd easily soldered 1206 SMD parts are used.
A ICSP port is also available if you want to use a raw PIC rather than a picaxe. A relay drive is provided using a BCX38c (or 2n2222 etc.) with the relay positive power selectable between the input voltage or the bus voltage.
The PCB is about 50mm X 70mm and is shown in a home produced 3D printed box with a 16A mains relay connected in a second isolated "printed" box.
The TLG10UA03 set up is simple, starting from its default, the communication type is set to TCP server and the wifi is set up to talk with your router. I then use dyndns.org to set up a web address that links to the dynamic IP address supplied by my ISP. The router is then set to port forward an external port to the wifi uart (50000 is the default)
Being lazy, I buy the DS18B20 ready wired and sealed from Sure Electronics. These can then be used indoor or out and are available with lead lengths up to 10m.
The circuit shown in the schematic is my V1.0. It was developed in DesignSpark and the PCBs were made by IteadStudio.
I've subsequently improved the circuit design to allow a 14M2 or 20-pin picaxe and optional RC filtering of inputs and also to allow the use of an ERF board instead of the wifi uart for local communications. These boards will also have a 16A relay and power connections on an extension that can be cut off if not required. I'm waiting on the boards to arrive and once tested can publish details if anyone is interested. I'm also playing with a capacitive dropper power supply to allow direct mains input.
If you want to have a look at the system live you can try http://matherp.dyndns.org:50000
I'll try and leave it up over the next few days. You can press the buttons without fear of anything bad happening
Any questions or comments appreciated as always.
The sample code provided in the next post is designed to work on an AXE401 for development rather than the version for the PCB but the only differences are the port assignments.
The example code uses one DS18B20 as a remote thermostat. The themostat temperature can be set remotely and the web page displays the current temperature as well as the max/min which can be reset remotely. The code uses serin/serout to talk to the UART but the PCB connects using the HW RX/TX pins so hardware serial comms can be used as required.
The PCB takes a 20 pin picaxe and allows direct connection of the TLG10UA03 wifi card and has up to 6 off 3-pin ports for flexible I/O (input or output with optional pullups and series resistors) as well as a 4-pin i2c port with built in pull-ups. The ports have power and ground supplied. The board uses one of the cheap and readily available LM2596 Low Ripple DC-DC Converter Step Down Power Supply modules which can be set to the preferred bus voltage, 3.3V in the case of boards using the TLG10UA03 wifi card, allowing the use of any DC supply up to 40V without worrying about overheating a linear regulator. All components are through hole except the resistors where the large ansd easily soldered 1206 SMD parts are used.
A ICSP port is also available if you want to use a raw PIC rather than a picaxe. A relay drive is provided using a BCX38c (or 2n2222 etc.) with the relay positive power selectable between the input voltage or the bus voltage.
The PCB is about 50mm X 70mm and is shown in a home produced 3D printed box with a 16A mains relay connected in a second isolated "printed" box.
The TLG10UA03 set up is simple, starting from its default, the communication type is set to TCP server and the wifi is set up to talk with your router. I then use dyndns.org to set up a web address that links to the dynamic IP address supplied by my ISP. The router is then set to port forward an external port to the wifi uart (50000 is the default)
Being lazy, I buy the DS18B20 ready wired and sealed from Sure Electronics. These can then be used indoor or out and are available with lead lengths up to 10m.
The circuit shown in the schematic is my V1.0. It was developed in DesignSpark and the PCBs were made by IteadStudio.
I've subsequently improved the circuit design to allow a 14M2 or 20-pin picaxe and optional RC filtering of inputs and also to allow the use of an ERF board instead of the wifi uart for local communications. These boards will also have a 16A relay and power connections on an extension that can be cut off if not required. I'm waiting on the boards to arrive and once tested can publish details if anyone is interested. I'm also playing with a capacitive dropper power supply to allow direct mains input.
If you want to have a look at the system live you can try http://matherp.dyndns.org:50000
I'll try and leave it up over the next few days. You can press the buttons without fear of anything bad happening
Any questions or comments appreciated as always.
Last edited: