When I published my first book “Home Automation with Raspberry©, Google© and Python©: an useful and fun Home Automation project”, www.amazon.com, both in Spanish and English, I received several comments from readers encouraging me to write another book for beginners in the use of micro controllers such as the Raspberry©, Arduino© or ESP32© as a basis for the creation of small projects development exercises, which will be explained step by step, more slowly, in more detail, more easily, etc. how to use an ESP32©, starting from scratch and adding elements from less to more complexity: LED, buttons, sensors, sounds, switches, controllers, Home Automation devices, access from the Web, voice control, IFTTT©, server Web, etc.

The art of programming.
Purist professional programmers may not agree with what I am going to say in this chapter, but I believe that it is the basis for ensuring that any training started on MicroPython© is continued to the end and is not abandoned because it is complicated, tedious and bored.
The trick is to think that programming in general and programming in MicroPython© in particular is like an Art, that is, each one has their own method and although we have to respect the rules of the language so that the system understands us, so that the ESP32® execute the necessary commands, so that the script achieves the intended objective, etc., it is essential that we feel comfortable with our own "art of programming", that we use the instructions that we best understand, with which we feel comfortable and proud even if they are not as efficient as possible.
There was a time in computing when super efficient and minimalist codes prevailed in order to take advantage of the limited memory of the devices. At this time, the speed of execution of the code itself also took precedence since the speed of the hardware was very poor.
Contents.
Dedicated.
Introduction.
Other titles bv the author Copyright.
1. HARDWARE.
Box of the ESP32®.
Heat sinks.
Power supply.
Connection cables.
The ESP32® module.
1. soc.
2. USB controller.
3. USB.
4. BOOT.
5. Regulator.
6. Antenna.
7. GPIO.
2. SOFTWARE.
Installation of Python® & ESPTool®.
Thonny® MicroPython® Editor.
3. MICROPYTHON.
The interpreter Thonnv©.
The art of programming.
Structure of a program.
Importing libraries.
Comments.
Parameters & variables.
Type of data.
1. Numerical data.
2. Logical data.
3. Characters.
4. Time.
5. Lists.
6. Dictionaries.
Input & output.
Operators.
1. Mathematical operators.
2. Logical operators.
3. Comparator operators.
4. Bit operators.
5. Character operators.
6. Assignment and inclusion operators.
Flow control.
1. If conditional.
2. While loops.
3. For loops.
User functions.
Predefined functions.
1. Functions with lists and strings.
2. Functions with numbers and strings.
3. Functions with dictionaries.
Files.
1. Using MicroPython®.
2. Using Thonny®.
3. Using the file manager.
Error control.
Command summary.
4. EXERCISES.
Basic Electricity.
ESP32® GPIO usage.
El: Turn on/off an LED.
E2: SOS signal with LED.
E3: DC10EGWA® level indicator.
E4: JQC3F® on/off relay.
E5: KSK-1A66® reed switch.
E6: OS25B10® photo switch.
E7: LED management with a button.
E8: ESP32® internal data.
E9: ESP32® internal watchdog.
E10: Connect the ESP32® to WiFi.
Ell: Scan WiFi with ESP32®.
E12: Analog to Digital Converter.
E13: Digital to Analog Converter.
E14: Wav generator with DAC.
E15: KY-006® passive buzz & DAC.
E16: DAC and *.wav files.
E17: DHT11/22® double sensor.
E18: DS18B20® temperature sensor.
E19: KY-106® RGB LED on/off.
Е20: RGB LED and PWM.
E21: Fan and ESP32® temperature.
E22: L293D® DC motor control.
E23: SG90® servo control.
E24: ESP32® internal clock.
E25: DS1302® external clock.
E26: Web server.
E27: BLE Bluetooth.
E28: ESP32® internal timer.
E29: KY-040© rotary encoder.
E30: Frequency meter with 7555©.
E31: HC-SR501® motion sensor.
E32: HLK-LD2410C® human presence sensor.
E33: ESP32® and TTP223® touch sensors.
E34: 49E® Hall sensor.
E35: 44E® Hall switch.
E36: MF52AT® NTC thermistor sensor.
E37: Switch with thermistor.
E38: KY-033® line detector.
E39: ERD29® laser diode.
E40: TCS3200® colors sensor.
E41: KY-032® obstacle sensor.
E42: 1838B® infrared receiver.
E43: Remote control with infrared.
E44: SW-200D® tilt sensor.
E45: SW-18010P® vibration sensor.
E46: MAX-4466© sound sensor.
E47: HC-SR04© ultrasound sensor.
E48: GL5539© photoresistor sensor.
E49: TIL-78© fire sensor.
E50: MO-2 gas and smoke sensor.
E51: SKU-500© rain sensor.
E52: Scan I2C bus.
E53: BMP280© barometric sensor.
E54: YB-GS07381® water pressure sensor.
E55: GY-271® magnetic sensor.
E56: OV7670© camera sensor.
E57: COM90133P® joystick.
E58: HW-209© logic level converter.
E59: MQ135® air quality sensor.
E60: Alternating current sensor.
E61: Send email with ESP32®.
Е62: Home Automation with IFTTT®.
E63: NO-IP® remote management.
E64: ADXL345® accelerometer.
E65: MPU6050® gyroscope.
E66: PCF8574® GPIO extender.
E67: SH1106® OLED screen.
E68: PCM5102® I2S player.
E69: Simultaneous ESP32® execution.
E70: 74HC595® 8 LED manager.
E71: SMA42056® 6 segments display.
E72: 4x7 segment cascade display.
E73: LCD1602® I2C display.
E74: LCD1602® display with PCF8574®.
E75: ILI9341® TFT display.
E76: RC522® RFID reader.
E77: Angeek® SPI uSD memory.
E78: Samiore® mp3 player.
E79: 4x4 matrix keyboard.
E80: MAX7219® LED matrix display.
5. ADDITIONAL SOFTWARE.
IPscanner Home®.
iCircuit®.
Wokwi®.
KingstVIS®.
OpenHantek®.
chatPGT®.
6. MORE INFORMATION.
Python2® vs Python3®.
Interruptions managed by the ESP32®.
IFTTT®.
Home Assistant® and ESPHome®.
Home Assistant® installation.
ESPHome® installation.
MB-102® power supply.
Eagle®.
Bibliography.
Glossary of terms.
Thanks.
Бесплатно скачать электронную книгу в удобном формате, смотреть и читать:
Скачать книгу Electronics and MicroPython with ESP32, 80 Complete Projects, Chenlo G., 2024 - fileskachat.com, быстрое и бесплатное скачивание.
Скачать pdf
Ниже можно купить эту книгу, если она есть в продаже, и похожие книги по лучшей цене со скидкой с доставкой по всей России.Купить книги
Скачать - pdf - Яндекс.Диск.
Дата публикации:
Теги: учебник по программированию :: программирование :: Chenlo
Смотрите также учебники, книги и учебные материалы:
Предыдущие статьи: