Make software in ESPHome that listens to the UART traffic and changes the state of a switch based on specific messages that happen when the dryer is first turned on or off. The code I used is based on a Custom UART Component in ESPHome and a Custom...
Wire up your coil pairs in series and connect them so that all the south poles of the electromagnets face inwards. The resistor I used in the schematic is a 1k resistor. The purpose of this is to prevent the digital pin from "floating" high when in the...
The code of this project includes the following key points: measurement of distance between 10PM and 5 AM (watchdog time)webhook activation for values greater than the threshold distance (SMS notification)D1 Mini as webserver to check measurements through...
Now download the code and install the mouse.h and keyboard.h libraries. Upload the code to your Arduino. You can copy the code from below. #include #include const int EMG = 2; //Emergency stop button :) const int L1 = 7; const int L2 = 8; const int P1...
Clocks are an important part of practical digital design. Suppose you have a two input AND gate. Then imagine both inputs go from zero to one, which should take the output from zero to one, also. On paper, that seems reasonable, but in real...
To start with any ESP8266 device you have to install the boards into the Arduino IDE, please follow the steps below to be able to compile the board. Please download the Arduino IDE if you do not already have it. 1.- Open the Arduino IDE, select...
Here is some code:Arduino:/* * RX is digital pin 10 (connect to TX of other device) * TX is digital pin 11 (connect to RX of other device) */ #include #include "U8glib.h" U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NO_ACK); String inputString = ""; // a string...
I made a status indicator that notifies me of my body's relative state of arousal! To help me visualize what's going on with the myriad of wearables I have set out to don at once, I've created an arm-mounted screen display that will tell me what I need...
There are many possible solutions, of course, but here's mine. Let's break it down into manageable pieces. First, let's look at the housekeeping items. I mentioned a 12 MHz clock, although that's ugly for simulation. Because of that, I wrote two...
/* *LED Fuel Gauge for Honda SuperHawk 16L Tank *http://www.superhawkforum.com *Code by Will Lyon 10/3/2015. Contact: will.lyon12584@gmail.com *Help from user Doug Jefferies on the Element 14 Forums *5V to fuel sensor Grn/Blk *Fuel sensor Gry/Blk to...
My Edge Impulse neural network model predicts possibilities of labels (operation status classes) for the given audio (features) buffer as an array of 2 numbers. They represent the model's "confidence" that the given features buffer corresponds...
When creating a state machine, there are two things to consider: How to represent the state you are currently in is the most obvious one. This may seem like a trivial concern, but as you'll see, there is more to it than meets the eye. The second decision...
Coding the Arduino board: After complete wiring, you can pass on to programming the Arduino board. const int blitzled1 = 9; const int blitzled2 = 8; const int redled = 7; const int orangeled = 6; const int yellowled = 5; const int blueled = 4; const...
I will try to comment the code used for the sensor-box, this is the latest version consider that there's 6 version. The weirdest problem i've encountered is the heap fragmentation, as a self learning guy, I've wildly used Strings (especially in a past...