Learn ESP32 Microcomputer: Code Using Kidsblock

From ArduinoInfo
Jump to navigation Jump to search

USING KIDSBLOCK TO LEARN ESP32 CODING

NOTE: Installation of Kidsblock is shown in detail on THIS page

SETTING UP KIDSBLOCK FOR ESP32 CODING

WE assume you have followed the installation page linked above. If you have Kidsblock installed you can take a quick look at the way it starts up HERE

LOOK AT ALL THE KIDSBLOCK SECTIONS

Look over this example of the Kidsblock Screen and interfaces. Click on image for larger view. (X to get back)

KidsBlockInterfaceDetails.jpg

KIDSBLOCK EXAMPLES FOR THE ESP32 INVENTOR KIT

The Inventor kit includes many Sensors and Actuators we will use, as well as Bluetooth and Wifi Communications. Here’s a look at the parts we can connect to on the kit:

InventorBoardDevices2048.jpg



Here is a list of the devices, categorized as Sensors/Inputs or Actuator/Action devices.

SENSORS / INPUTS ON INVENTOR KIT

  • four push buttons
  • potentiometer Knob
  • photoresistor
  • Temperature and Humidity Sensor DHT11 type
  • sound sensor
  • ultrasonic Distance Sensor
  • PIR Warm Human / Animal motion sensor
  • IR Remote receiver

ACTUATORS / OUTPUTS ON INVENTOR KIT

  • 8 by 8 LED Dot Matrix Display
  • LCD 16 Characters 2 Lines Display
  • 4 digit 7-segment LED display
  • four LEDs (red, yellow, green and blue)
  • six WS2812 Multicolor Controllable RGB LEDs
  • Active Buzzer / Beeper
  • Amplifier and Speaker

SENSOR/ACTUATOR CONNECTION POINTS ON INVENTORS KIT

The many sensors/actuators on the Inventor Kit must have a wire connection made to an ESP32 IO Pin for them to work. You need to know the IO pin Number (Like "IO5") that you will use in your code.

Each device on the Kit has one or more PINS your will use, arranged as a "PORT". Here's a diagram showing all the PORTS: Click on image for larger view. (X to get back) PORTS-OnInventorKit1.jpg

ESP32 I/O PORT PINS

The most important PORT is the one with all the ESP32 Microcomputer connections. Take a look at it HERE: ESP32PORT-PINOUT-H.jpg

COMBINING DEVICES FOR HIGHER FUNCTION


                • WORKING HERE **************

ESP RECOMMENDED PIN USEAGE

NOTE: We will Map this to the I/O Pinout shown above. This shows the pins on the actual ESP32 plugin module.

The following table shows what pins are best to use as inputs or outputs and which ones you need to be cautious of because they have other uses or actions. The pins labelled OK are OK to use for digital Input or Output, and for the other functions they are labelled for such as PWM, Analog In or Out etc.

There is a PDF file available with this diagram and columns for you to note what your project will be using pins for. It's Media:ESP32-RecommendedPinsYourProject.pdf HERE ESP32PinUsage.jpg