![]()
Next, you have to get the WEMO working with the Echo. There are some steps to get the WEMO working with the arduino IDE, and you can follow them in this excellent instructable. You can use the Arduino IDE to program the WEMO. In fact, I could have controlled 4 solenoids instead of just the one, but one was all I needed for this project. There was no reason that I connected to Input/Output 2, I could have done Input/Output 1. I soldered male pins to the end of each solenoid wire. solenoid wires - black to WEMO ground, any color to L293D output2 pin (6) - NOTE: I used wire with a 2-pin female connection at the end. battery cap wires - black to WEMO ground, red to L293D Vs pin (8) 5. Yellow wire from WEMO D1 pin to L293D input2 pin (7) 4. ![]() Black wire from WEMO ground to L293D ground pin (5) 3. Red wire from WEMO 5V to L293D Enable pin 2. Then I soldered wires to to the board to make connections: 1. However, I discovered, that the L293D does not plug into the headers with a good connection, so I soldered it directly onto the board. Originally, I also soldered female headers for the L293D to plug into. This particular board is nice because it is laid out like a breadboard with rails and sets of holes that are connected.įirst, I soldered female headers onto the perfboard for the WEMO to plug into. #Wemos d1 mini mac emulator freeIf you have questions please feel free to ask me.I soldered this together on the perfboard. I hope it helped you to get clouser to building this project. Rrdtool graph hour.png –end now –start end-36000s DEF:temp=test.rrd:temp:AVERAGE LINE2:temp#FF0000 Of course you need to copy this file under the wwwroot. The webpage is realy simple and the 2 years long graph is not only a joke. Next step: create a simple webpage and generate the graph. #Wemos d1 mini mac emulator installIt is time to install apache and configure it. * * * * * /usr/local/bin/homero.sh &>/dev/null (you can adjust if you do not want high load with it.) Next step: create a crontab to schedule the feed of rrd. We can store the temperature data for 20 years and detailed in 90 days. Next step: prepare the RRD on the linux box: #Wemos d1 mini mac emulator serialIf you have wifi connection problems, you can simple add serial debug into the arduino code. If you can’t see the temperature text when connecting with a web browser, you need some debuging, and need to check the DHCP server log. (Please google it for your DHCP solution.) I’m using 172.16.3.5. Next step reserve the IP address for D1 mini. By the way the browser can show the webpage as a pure text. Yes, you are right there is no html header, body, etcetera, but we will process the data on a server not on a web browser. Uncomment this line for the function to return Fahrenheit instead. Temp = Temp – 273.15 // Convert Kelvin to Celsius * Utilizes the Steinhart-Hart Thermistor Equation: */ Calculation is actually: Resistance = (1024/ADC) ![]() Int ledPin = D4 // Beepitett led a wifi-n #Wemos d1 mini mac emulator passwordThe address is reserved in my DHCP server config.Ĭonst char* password = “top-secret-change-it” On the wifi interface the D1 mini uses my DHCP server to get IP address. #Wemos d1 mini mac emulator codeI used a simple webserver code and some mathematics to calculate the temperature from AD pin read. The termistor is connected to D1 mini A0 pin with some wire in order to be able to placed to outside. It collects all measured temperature data in a RRD database and provides visualization, graph on an apache webserver.įirst step is some soldering: 10kOhm thermistor (NTC) is used as sensor. ![]() datadbase side runson my home linux server. My plan was to split the monitoring process to two separated part: temperature measuring runs on the D1 mini as, temperature sensor with web interface. One of my favorite is arduino ide, hence I will use it for the project, see It is more than enough for me to start playing with it. Fortunately they are compatible with the original wemos D1 mini.ĭ1 mini is a mini wifi board based on ESP-8266EX.ġ1 digital input/output pins, all pins have interrupt/pwm/I2C/one-wire supported(except D0) I was real lucky to find this cheap wemos D1 mini clones on aliexpress. First of all this project is only for my fun. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |