I want to learn how to control hardware things like rotate a motor or sensors with android apps. Can you please suggest me how can i do that.
Hello,
the question is very wide and can have many answers but, at the very end, what you need is a software-hardware interface. In other words you need "something" that interprets the software commands implemented in your App and translates them in actuations.
To this purpose I suggest to use simple and "low cost" Arduino boards that you can drive from APPs by using i.e. Bluetooth connection (Apps -> Bluetooth -> Arduino -> Hardware to be driven). Any simple Arduino (or similar) board features many analogue and digital Input and Output channels, so you can connect almost any type of physical actuator. In addition to this, on the web you can find tons of libraries ready to be used on Arduino boards. Finally, the Arduino C (like) language is very simple and can be learnt in a little time.
Of course this is only one of the possible solutions or, at least, this is the one I use
Best wishes.
Another solution is to drive your IoT directly from the web by using a web component and an ESP8286 board (programmable by using the same Arduino IDE). This is a bit tricker, but feasible as well with a little effort at the beginning ....
I have uploaded these tutorials on this topic to this community, you may be interested in taking a look.
Arduino + Bluetooth HC-06
Hello friends,
In this topic I am going to show some examples of Arduino UNO with the Bluetooth HC-06 module.
I will start with simple examples and later I will put some more complicated codes.
Arduino + Bluetooth HM-10 BLE
Hello friends,
I bought a wonderful HM-10 module with BLE for only $ 2.
I have written my experiences on this Spanish website (http://kio4.com/arduino/161_HM10_BLE.htm ) and I would like to share a summary in this Community.
I have used the BluetoothLE 20190701 extension.
I have connected the module to an Arduino UNO
[hc10_3]
I tried to use these libraries, but they did not work for me in Arduino UNO.
CurieBLE.h is for Arduino 101 (Curie).
ArduinoBLE is for Arduino MKR WiFi 1010,…
ESP32 - BLE (Bluetooth)
Hello friends,
I'll write in this topic about BLE on ESP32, send and receive text, with clock and without clock. Notify. I'll use the codes of Neil Kolban .
0.- Board D1 R32 ESP32.
This is a cheap card ($ 5) with the dimensions and shape of the Arduino UNO, but with the ESP32.
[esp322pin_h]
Search images: D1 R32 ESP32
This card has classic Bluetooth, BLE, WiFi, ADC, DAC, and more feature.
This card can be programmed with the Arduino IDE.
[comparativa]
There is another smaller ESP32 mode…
ESP32 - WiFi.
Hello friends,
I’ll write in this topic about WiFi on ESP32, LED on/off, Static IP, SoftAP,…
0.- Board D1 R32 ESP32.
This is a cheap card ($ 5) with the dimensions and shape of the Arduino UNO, but with the ESP32. I used this card in the ESP32 and BLE tutorials .
[esp322pin_h]
Search images: D1 R32 ESP32
This card has classic Bluetooth, BLE, WiFi, ADC, DAC, and more feature.
This card can be programmed with the Arduino IDE.
[base64_11]
ESP32-CAM
Hello friends,
This is a cheap card ($ 6) with ESP32-S and a cam OV2640.
ESP32:
160MHz clock speed
RAM 520KB SRAM + 4M PSRAM
Bluetooth classic y BLE
Wi-Fi 802.11 b/g/n/
Cam: OV2640
SdCard reader.
Flashlight LED (GPIO 4)
[esp32_cam1]
To upload the sketches to this module we will need a USB adapter, for example the FTDI FT232 RL USB.
[esp32_ftdi]
Search images: ESP32-CAM WiFi OV2640
Search images: FTDI FT232RL USB
1.- Connections to upload Sketch.
[esp32_cam6] .
2.- Then remove…
ESP32 - MQTT
Hello friends,
I’ll write in this topic about MQTT with ESP32. Publish. Subscribe. Broker. Mosquitto,…
0.- Board D1 R32 ESP32.
This is a cheap card ($ 5) with the dimensions and shape of the Arduino UNO, but with the ESP32. I used this card in the ESP32 Wifi and ESP32 BLE tutorials .
[esp322b]
Search images: D1 R2 ESP32
This card has classic Bluetooth, BLE, WiFi, ADC, DAC, and more features.
This card can be programmed with the Arduino IDE.
[comparativa]
ESP8266 - WiFi
Hello friends,
1.- Send message and view it on an LCD screen.
1.- You write a message in TexBox1 and it is sent by WiFi to ESP8266, that message is shown on the LCD screen.
2.- If you write on5, off5, on6, off6, LEDs 5 or 6 turn on/off.
[esp8266_kio4]
```
// Juan A. Villalpando.
// KIO4.COM
// Send a message
// from App Inventor
#include <ESP8266WiFi.h>
const char* ssid = "Name_Net_WiFi";
const char* password = "Password_WiFi";
// Static IP.
IPAddress local_IP(192, 168, 1, 12);
…
1 Like