Getting started with ESP-12S
Posted: Mon Mar 25, 2019 8:23 am
Hi!
I will soon drive my 24DoF hexapod using my Python framework¹ on a RPi, with a custom shield using 2 PCA9685; all movements (synchronized) are done in Python.
But I would like to test another solution : having a node per leg, to drive the 4 servos, and also read some inputs to detect the ground. As I would like to use Python here too, the idea is to deploy micropython on ESP-12S. But before I start, I have a few questions:
- is the duty() method of PWM class takes an integer or a float? In the first case, I could only have 115-40=75 positions for 180°C, which is not enough;
- I plan to communicate between the RPi and the ESPs through I²C. But I read on Adafruit site that I²c on ESP8266 can only be master, not slave (https://learn.adafruit.com/micropython- ... /i2c-slave); is it true? I can't find the information on micropython doc...
- on ESP-12S doc, I can see a table showing GPIO0, 2 and 15 setting modes (UART or FLASH_BOOT); does it mean that it is not possible to use these pins for other usages?
Thanks for your help.
Best,
¹ http://www.py4bot.org
I will soon drive my 24DoF hexapod using my Python framework¹ on a RPi, with a custom shield using 2 PCA9685; all movements (synchronized) are done in Python.
But I would like to test another solution : having a node per leg, to drive the 4 servos, and also read some inputs to detect the ground. As I would like to use Python here too, the idea is to deploy micropython on ESP-12S. But before I start, I have a few questions:
- is the duty() method of PWM class takes an integer or a float? In the first case, I could only have 115-40=75 positions for 180°C, which is not enough;
- I plan to communicate between the RPi and the ESPs through I²C. But I read on Adafruit site that I²c on ESP8266 can only be master, not slave (https://learn.adafruit.com/micropython- ... /i2c-slave); is it true? I can't find the information on micropython doc...
- on ESP-12S doc, I can see a table showing GPIO0, 2 and 15 setting modes (UART or FLASH_BOOT); does it mean that it is not possible to use these pins for other usages?
Thanks for your help.
Best,
¹ http://www.py4bot.org