5

To get better calibration, you need more calibration points. In the example below, I use 8 measurement points. Given 8 humidity calibration bags for 20, 30, 40, 50, 60, 70, 75 and 80%. int calvalues[] = {20, 30, 40, 50, 60, 70, 75, 80}; You would take several samples with the DHT sensor and build a table using the averages: int dhtvalues[] = {15, 28, 39, ...


3

Use avrdude. The command format is simple, assuming you have installed it from the Linux repositories: avrdude -carduino -patmega328p -P/dev/ttyUSB0 -b115200 -Uflash:w:/path/to/project.bin.hex:i Depending on what bootloader is installed in your nano you may need to change the baud rate (-b115200) to 57600. Also, of course, the USB device should be set to ...


1

It seems you have to increase the gain, see inside the document Sound dectector hookup guide The following fragment: Also take into account it needs between 3.5 and 5.5 V, while 5 V is ideal (see Quick start at the beginning of the same document.


1

Next time, select your code and press ctrl-K... Also align your code (indent it well). However, you don't need help actually as you have plenty of memory left. As as written: You only use 12% of program storage space. This might seem a lot having such a small sketch, but most of it is because of library usage/framework (such as the digitalWrite call(s). ...


1

There is a function that invert the colors of your screen, you can pick either black on white or white on black, I have tried it and I have quite experience with your display, I think you should try this piece of code. At the beginning of your Arduino code be sure that you declared the object using the same name. Adafruit_SSD1306 display(SCREEN_WIDTH, ...


1

If you already have a 5V source then you can use a MOSFET as a switch to turn on/off the power to the tablet like this: But if you want to turn on/off a USB charger that goes to an AC outlet, then you will need to control a relay to turn on/off the AC supply to the USB charger. You can use a relay module like this: https://www.amazon.com/Tolako-Arduino-...


Only top voted, non community-wiki answers of a minimum length are eligible