User manual
For a building automation project, a server would receive the status message, e.g.
of a motion sensor, and then send the command to activate the light to another
controller. This way, an entire network of sensors and actors can be set up.
2.5 | Analogue sensor
In the last project, a button was used to deal with the simplest form of a sensor.
This time, a potentiometer should be used as an analogue sensor to permanently
send measured values into the network. Use the
enclosed potentiometer with 10 kΩ for this. The
setup is shown in the lower figure.
The setup with potentiometer at A6
The program
In addition to the analogue sensor, there is also another change to the program.
This time, the controller is no longer to be operated in access point mode as be-
fore, but to connect to your home network. You can enter your station data simply
at the top of the program this time.
After the upload, it may be a while before the connection to the network is estab-
lished. If this is successful, the LED D3, which is firmly equipped on the board,
lights up. This is the sign that the controller is ready. While the serial monitor is
active, you will see the corresponding message, but you may want to use the
board autonomously for later experiments. In this case, the feedback can be very
helpful. The serial monitor will also give you the information of which IP has had
the board assigned by the router. This IP is important, since you want to address
Required parts
1 x pinboard, 1 x NanoESP, 1 x LED, 1 x resistor 1 kOhm
(brown-black-red), 1 x potentiometer, circuit wire