Articles

Affichage des articles du 2019

ESP8266 ESP-12

Image
How to wire You need : ESP8266 ESP-12 FTDI FT232RL Module - Select 3.3v output An external 3.3v power (because FTDI module is unabled to give 200 ma current) Tutorial :  https://www.fais-le-toi-meme.fr/fr/electronique/tutoriel/programmes-arduino-executes-sur-esp8266-arduino-ide

Mosfet N Channel

Image
Mosfet N channel Mosfets can be used to act like a switch For Mostfet N channel Source : Connect to ground Drain : connect to led -> resistor -> +VCC Gate : Connect to +VCC to led ON, Connect to Ground to led OFF See tutorial on Youtube :  https://www.youtube.com/watch?v=gTwq6lxDolM I used STP16NF06L - MOSFET N-Ch 60 Volt 16 Amp Specification Value Supplier Package TO-220-3 Transistor Polarity N Maximum Drain Source Voltage 60 V Maximum Continuous Drain Current 16 A Maximum Gate Source Voltage ±16V Maximum Power Dissipation 45000mW Number of Elements per Chip 1 Peak Forward Voltage 60VDC Output Power 45W Peak Non-Repetitive Surge Current 64A Peak Reverse Current 10uA Channel Mode N-Channel Enhancement Peak Reverse Recovery Time 50ns Channel Type N Peak Reverse Repetitive Voltage 60VDC Configuration Single Maximum Drain Source Resistance 0.09 Ohms@10V Category Power MOSFET Maximum Continuous Forward Current 16A Typical Fall...

Esp-01 deep sleep mode

Image
ESP-01 Esp01 is a very small esp8266. Less pins and small size. So it is wonder for iot projects But ESP-01 consumption is around 90 mAh. So you can't power it with a battery because lifetime will be only few days. To decrease consumption you have to put esp01 in a sleep mode. Best mode is deep sleep mode which reduce consumption to less than 1 uAh. Power consumption - See datasheet Standby ~ 0.9uA Running ~60-215mA, Average ~ 80mA How to power To power ESP-01 you have to use a 3.3v battery connect pin 1-GND to ground connect pin 8-VCC and to 3.3v Found a 3.3v battery is not easy. A solution is to use 18650 battery 3.7v (or 3x AA) and drop voltage to 3.3v. To drop voltage, you can use a LDO like MCP1700-3302E/TO VIN : 2.3-6v VOUT : 3.3v Goto Deep Sleep mode To use deep sleep mode, it is pretty easy. Just add ESP.deepsleep(5*1000000) in your code to go to sleep for 5 seconds. After 5s ESP will wakeup and restart and run setup() again ...

Wemos D1 mini

Image
Wemos D1 mini Webmos D1 Mini module is an ESP-12. It features are a3.3V LDO controller, a 3.3V input, a 5.0V input and a micro USB socket for power and programming. It has 11 ports and all have an interrupt (IRQ), andPWM, I2C. Like all ESP8266 based development boards, it is very easy to program using the Arduino IDE It is a little bigger than an ESP-01. But unlike the ESP-01, it has the advantage of having a pin GPIO16 which connected to the pin RST, wake up the component of deep sleep mode. Be careful, these 2 pins must not be connected when you upload your sktech.

Battery powered thermometer

Image
My idea is to build few thermometers powered by battery to check temperature's rooms in my house. Theses thermometers will report temperature regularly to my server and I will display datas in a graphic web page. I wanted : to get temperatures every half hour (or more if i can) battery life is at least 6 months (or more if i can) to test esp8266 components For my tests, I bought : 18650 battery 4200 mAh  Esp-01 DHT22 module for Esp-01 First idea My first idea was to use Esp-01 because it is very small, so i bought a DHT22 module.And just plug Esp-01 on DHT22 module and power it and it is finish ! ESP-01 DHT22 Temperature & humidity sensor for esp01 And I upload this sketch in the esp01 Code formatting with  http://hilite.me/ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 ...