Forum.

 

Need help or have a question? Join the conversation in our community topics and share your ideas, tips, or challenges—we’d love to hear from you! Before posting, be sure to check our

 

?

Documentaton of ESP...
 
Benachrichtigungen
Alles löschen

[Gelöst] Documentaton of ESP32 board - Pin Layout

19 Beiträge
6 Benutzer
1 Reactions
17.4 K Ansichten
(@wela72)
Active Member
Beigetreten: Vor 2 Jahren
Beiträge: 4
Themenstarter  

I just bought my first hpRobots Otto. When checking the electronics with the "Starter Demo" program, I found the ultrasonic sensor was not responding. This sensor is connected to socket 1. To find out, if the port or the sensor is faulty, I would like to connect it to an other socket. But I did not find documentation on the ESP32 board and how the sockets make use of the io-ports. The sample programs import a 'machine' library and a 'pin-class'. Maybe it is defined in there.

Can someone please help me where to find the necessary documentation / libraries?



   
Zitat
Schlagwörter für Thema
Camilo
(@cparrapa)
Developer Admin
Beigetreten: Vor 3 Jahren
Beiträge: 112
 

Hi @wela72, welcome to the community.

Was the distance not responding, or the rgb lights? If you want to try in connector 2 you can swap put there and in edit text mode of webcode change the pin definition:

ultrasonic = NeoPixel(Pin(18), 6) # Connector 1
io = 19 # echo input and trigger out signal

to

ultrasonic = NeoPixel(Pin(16), 6)
io = 17 # echo input and trigger out signal

Also make sure that the libraries are updated, you can always access them with the "Files in Otto" option in setting or by using Thonny IDE, give it a try and let me know.



   
AntwortZitat
(@wela72)
Active Member
Beigetreten: Vor 2 Jahren
Beiträge: 4
Themenstarter  

Hi @cparrapa

Thank you for your answer.

Yes, the distance is not responding. The lights in the eyes are OK (program "colorful lights in the eyes" works fine). If I use program "distance sensor" which measures the distance, the result is always fixed to 2cm.

With your help I tried connector 2, but with same negative result - distance is not responding. So the sensor must be faulty. I bought the set at MORAVIA Consulting. Hope they will replace the sensor.

Thank you for help with connector 2. But again, where can I find the ports of all connectors if I would like to use them? Updates of Otto software & libraries where successful - no change.

regards



   
AntwortZitat
Camilo
(@cparrapa)
Developer Admin
Beigetreten: Vor 3 Jahren
Beiträge: 112
 

Hello @wela72

We at Moravia will replace that sensor for you, before sending the new sensor, everything else is running ok?

The full documentation on the circuit board we are putting it together into a new update for the coding guide, meanwhile I will email you a wiring diagram with all connectors and ports/pins.



   
AntwortZitat
(@wela72)
Active Member
Beigetreten: Vor 2 Jahren
Beiträge: 4
Themenstarter  

Hi @cparrapa

Thank you for replacing the sensor. Yes, the rest of the electronics works fine. 



   
Camilo reacted
AntwortZitat
Camilo
(@cparrapa)
Developer Admin
Beigetreten: Vor 3 Jahren
Beiträge: 112
 

Hi @wela72

Your replacement part has been sent, you had an email with the details

Happy building!



   
AntwortZitat
(@jerry66)
New Member
Beigetreten: Vor 2 Jahren
Beiträge: 3
 

I also would like to get the pinouts for Otto. I am writing some application code in ESP32Forth and I really need all the pin connections. I have a lot of useful code that I can easily port to this micro-controller but it make my work a lot easier if I have all the inter-connections info. A schematic would be great!



   
AntwortZitat
Camilo
(@cparrapa)
Developer Admin
Beigetreten: Vor 3 Jahren
Beiträge: 112
 

ESP32Forth? @jerry66 we can try to implement your useful code into blocks what are your trying to make?

@wela72 as confirmed in your email you received a functional ultrasonic sensor replacement, so this post is solved for you.

 



   
AntwortZitat
(@wela72)
Active Member
Beigetreten: Vor 2 Jahren
Beiträge: 4
Themenstarter  

@cparrapa , Yes, I got a new ultrasonic sensor and it works fine now. My post is solved. Thank you for your support!



   
AntwortZitat
(@mgurel)
New Member
Beigetreten: Vor 2 Jahren
Beiträge: 1
 

@cparrapa Hello, Can I get a wiring diagram with all connectors and ports/pins via email, if possible?



   
AntwortZitat
(@jerry66)
New Member
Beigetreten: Vor 2 Jahren
Beiträge: 3
 

Hello, @cparrapa I would also love to get the port/pin lists for Otto. Thanks.

 



   
AntwortZitat
(@jobroe)
Active Member
Beigetreten: Vor 3 Jahren
Beiträge: 10
 

Same to me, a board layout documentation would be nice.



   
AntwortZitat
Camilo
(@cparrapa)
Developer Admin
Beigetreten: Vor 3 Jahren
Beiträge: 112
 

Hello @wela72 @mgurel @jerry66 @jobroe

Attached the basic pinout of the main and only circuit board of the HP Robots Otto. For more technical details go to:

https://hprobots.com/otto-robot/product/#specifications

The circuit board has a total 11 connectors labeled with simple printed numbers on top of each female connector ("Connector #")

The first three (1, 2, 3) have 4 pins for a cable of 4 wires, all the rest have 3 pins for a cable of 3 wires.

This is easy to recognize in our web code words app when you need to switch between components by selecting a different number and moving the component to that connector.

But when in the text programming, the generated code in blocks or with Micropython or Arduino, the connector # is translated to the corresponding GPIO pin number according to the ESP chip real input/output signal numbers as following:

  • Connector #1: GPIO 18 & 19 (ultrasonic or OLED)
  • Connector #2: GPIO 16 & 17 (mp3 or encoder)
  • Connector #3: GPIO 22 & 21 I2C SCL & SDA (matrix or accelerometer)
  • Connector #4: GPIO 26 (tilt or button)
  • Connector #5: GPIO 4 (LED ring or temperature sensor)
  • Connector #6: GPIO 32 ADC good for analog inputs (line sensor left or microphone)
  • Connector #7: GPIO 33 ADC good for analog inputs (line sensor right or potentiometer or light sensor)
  • Connector #8: GPIO 27 (servo angle right)
  • Connector #9: GPIO 15 (servo angle right)
  • Connector #10: GPIO 14 (servo wheel left)
  • Connector #11: GPIO 13 (servo wheel right)

In parenthesis we put the default wiring connections assigned to our robot kits, you can rearrange modularly most of them depending on your application.

In terms of integrated components in the board we have additional control of an LED, a buzzer and the battery voltage, make sure NOT to use this numbers in the code for other purposes.

  • Built in LED: GPIO 2
  • Built in Buzzer: GPIO 25
  • Battery voltage: GPIO 39

Let me know if any questions


Diese r Beitrag wurde geändert Vor 8 Monaten von Camilo

   
AntwortZitat
(@jerry66)
New Member
Beigetreten: Vor 2 Jahren
Beiträge: 3
 

@cparrapa Thanks for the info. I worked out most of what I needed some time ago. I have had esp32Forth running on OTTO for some time now. I works very well - very powerful programming environment. I just have so many projects I am working on, that I haven't had time to do even more with OTTO.



   
AntwortZitat
(@merlinmc)
Active Member
Beigetreten: Vor 1 Jahr
Beiträge: 4
 

Is GPIO Pin 5 for the lights in the ultrasonic senor?



   
AntwortZitat
Seite 1 / 2
Nach oben scrollen
Sie werden nach der Produkteinführung verfügbar sein.