User Tools

Site Tools


elec:esp8266:wifinfo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
elec:esp8266:wifinfo [2016/02/01 10:30] – created redoxelec:esp8266:wifinfo [2023/11/24 21:55] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
 ## Overview ## Overview
 +
 +A few months ago, I came across a project called Wifinfo. It's a small board, based on an ESP8266, which retrieves information from the French power meters and displays them, or sends them across the network. The PCB was cheap, and I though I could use one, so I built some boards ! Turns out, I can't use them: the telemetry option is disabled in my power meter...
  
 ## Hardware ## Hardware
 +
 +### PCB
 +
 +I uploaded the files on OSHPark and also shared them, so anyone can easily order them: [OSH Park](https://oshpark.com/shared_projects/Rjzd7tY7)
 +
 +### BoM
 +
 +^ Part(s) ref on design                     ^ Qty ^ Name                           ^ Doc       ^ Supplier   ^ SupplierRef ^
 +^ Resistors ||||||
 +| R1, R2, R4, R5, R6, R7, R8                | 7   | 10K 0603 SMD Resistor          | N/A       | Mouser     | [[https://www.mouser.com/Search/ProductDetail.aspx?R=ERJ-3GEYJ103Vvirtualkey66720000virtualkey667-ERJ-3GEYJ103V|667-ERJ-3GEYJ103V]]             |
 +| R3, R11, R12                              | 3   | 4.7K 0603 SMD Resistor         | N/A       | Mouser     | [[https://www.mouser.com/Search/ProductDetail.aspx?R=ERJ-3GEYJ472Vvirtualkey66720000virtualkey667-ERJ-3GEYJ472V|667-ERJ-3GEYJ472V]]             |
 +| R9                                        | 1   | 100K 0603 SMD Resistor         | N/A       | Mouser     | [[https://www.mouser.com/Search/ProductDetail.aspx?R=ERJ-3EKF1003Vvirtualkey66720000virtualkey667-ERJ-3EKF1003V|667-ERJ-3EKF1003V]]             |
 +| R10                                       | 1   | 470R 0603 SMD Resistor         | N/A       | Mouser     | [[https://www.mouser.com/Search/ProductDetail.aspx?R=CRCW0603470RJNEAvirtualkey61300000virtualkey71-CRCW0603J-470-E3|71-CRCW0603J-470-E3]]             |
 +^ Capacitors ||||||
 +| C3, C4, C5                                | 3   | 100nF 0603 SMD Capacitor       | N/A       | Mouser     | [[https://www.mouser.com/Search/ProductDetail.aspx?R=C0603C104K4RACTUvirtualkey64600000virtualkey80-C0603C104K4R|80-C0603C104K4R]]          |
 +| C1, C2                                    | 2   | 10uF 0805 SMD Capacitor        | N/A       | Mouser     | [[https://www.mouser.fr/Search/ProductDetail.aspx?R=GRM21BC81C106KE15Lvirtualkey64800000virtualkey81-GRM21BC81C106KE5L|81-GRM21BC81C106KE5L]]             |
 +^ LED  ||||||
 +| LED                                       | 1   | Red 0603 SMD LED 20mA          | N/A       | eBay     | [[http://www.ebay.com/itm/381222660649| 20x 0603 R,G,B,Y,O,W]]             |
 +^ Power & Signal ||||||
 +| D1, D2, D3, D4, D5                        | 5   | Diodes schottky 1A 20V         | N/A       | Mouser     | [[https://www.mouser.fr/Search/ProductDetail.aspx?R=STPS140Zvirtualkey51120000virtualkey511-STPS140Z|511-STPS140Z]]             |
 +| U1                                        | 1   | 3.3V 800mA LDO Regulator       | [[http://|Link]]       | Mouser     | [[http://www.mouser.com/Search/ProductDetail.aspx?R=AZ1117CR-3.3TRG1|621-AZ1117CR-3.3TRG1]] |
 +| OK1                                       | 1   | Phototransistor                | [[http://|Link]]       | Mouser     | [[https://www.mouser.fr/Search/ProductDetail.aspx?R=LTV-814Svirtualkey57820000virtualkey859-LTV-814S|859-LTV-814S]] |
 +| Q1                                        | 1   | Mosfet Channel N               | [[http://|Link]]       | Mouser     | [[https://www.mouser.fr/Search/ProductDetail.aspx?R=BSS138virtualkey51210000virtualkey512-BSS138|512-BSS138]] |
 +^ Headers & Sockets & Switchs ||||||
 +| Flash, Reset                              | 2   | SMD Tactile switch             | N/A       | Mouser     | [[https://www.mouser.fr/Search/ProductDetail.aspx?R=KMR211NG_LFSvirtualkey61170000virtualkey611-KMR211NGLFS|611-KMR211NGLFS]] |
 +| PWR,TINFO                                 | 2   | 3.5mm Screw header 1x2         | N/A       | eBay      |
 +^ uC    ||||||
 +| ESP                                       | 1   | ESP07 or ESP12 module          | [[http://|Link]]       | Aliexpress      |
 +
 +### Tools
 +
 +You need:
 +
 +- A decent (250mA) 5v PSU, like a phone charger, or a battery.
 +- An USB-Serial adapter, which can easily be sourced from eBay.
 +
  
 ## Software ## Software
  
 ### Tools ### Tools
 +
 +The firmware is an Arduino sketch, so you will need:
 +
 +- The Arduino IDE. I used v1.6.7, from [the Arduino website](https://www.arduino.cc/en/Main/Software)
 +- The ESP8266 _extension_ for the Arduino IDE, from [Github](https://github.com/esp8266/Arduino)
 +- The "ESP8266 Sketch data upload" tool for the Arduino IDE, from [Github](https://github.com/esp8266/arduino-esp8266fs-plugin/releases/)
 +- Some libraries such as:
 +  - NeoPixelBus, for ESP8266. Make sure to fetch a working branch, from [Github](https://github.com/Makuna/NeoPixelBus).
 +    
 +    I took a "random" one, and it compiles fine, but the LED doesn't work properly...
 +  - 
  
 ### Firmware ### Firmware
 +
 +Grab the firmware from the LibTeleinfo Github project, in the `examples/Wifinfo`folder.
 +
 +There's currently a bug in the index.html file: the [issue](https://github.com/hallard/LibTeleinfo/issues/3) with a _fix_, on Github.
  
 ### Upload ### Upload
 +
 +#### Wiring and process
 +
 +You need to put a jumper on the board between the __TX__ and __TX1__ pins, on the three pin header on the right. 
 +
 +Connect your serial Adapter to the board (on the six pins header on the right): RX on TX, TX on RX, GND on GND.
 +I used an external power supply but you can also probably use the 5v pin to power the board.
 +
 +To put the ESP8266 in _Flash mode_, press the Flash switch, hold it, press the Reset switch, relase Reset, release Flash. Should be ok.
 +
 +Select the __good__ board type and options (the default ones are usually okay).
 +
 +#### Upload the data
 +
 +* Load the Wifinfo sketch
 +* Put the ESP266 in _Flash mode_
 +* Tools > ESP8266 Sketch Data upload
 +
 +#### Upload the firmware
 +
 +* Load the Wifinfo sketch
 +* Put the ESP266 in _Flash mode_
 +* Upload sketch
 +
  
 ## Links ## Links
 +
 +* [Github project](https://github.com/hallard/WifInfo) Schematic and PCB files
 +* [LibTeleinfo](https://github.com/hallard/LibTeleinfo) Firmware
 +* [Wifinfo-related message board](https://community.hallard.me/category/16/wifinfo)
/home/share/www/redox.ws/wiki/data/attic/elec/esp8266/wifinfo.1454322636.txt.gz · Last modified: 2023/11/24 21:55 (external edit)