Search found 40 matches

by rpr
Wed Jul 17, 2019 1:43 am
Forum: ESP32 boards
Topic: main.py does not appear to working after boot
Replies: 47
Views: 1011

Re: main.py does not appear to working after boot

This maybe a silly suggestion. Put 'import main' as the last line of your boot.py. Or rename it as a different file.

Can you post your (redacted/reduced) boot.py and main.py scripts?

Edit: Other suggestions

Remove your 'boot.py' and just leave 'main.py' that blinks an LED.
by rpr
Thu Jul 11, 2019 11:46 pm
Forum: General Discussion and Questions
Topic: how fast is mycropython ?
Replies: 2
Views: 199

Re: how fast is mycropython ?

Thanks for that link. Very illuminating.

I tried those on my ESP32. The first two programs (led1, led2) ran slower than the pyboard, while the next two (led3, led4) ran a little faster. For obvious reasons, I could not run the native and viper demos.
by rpr
Thu Jul 11, 2019 1:37 pm
Forum: ESP32 boards
Topic: main.py does not appear to working after boot
Replies: 47
Views: 1011

Re: main.py does not appear to working after boot

Have you tried a hard reboot when connected via rshell either pressing the button on the esp32 or doing a machine.reset()?
by rpr
Wed Jul 10, 2019 9:22 pm
Forum: ESP32 boards
Topic: main.py does not appear to working after boot
Replies: 47
Views: 1011

Re: main.py does not appear to working after boot

Have you tried 1) power cycling the ESP32 directly or 2) tried to power down the Pi and restart as opposed to reboot? Maybe the reboot of the Pi is not disconnecting the power to the USB?
by rpr
Sun Jul 07, 2019 6:20 am
Forum: ESP32 boards
Topic: Rain Sensor (FC-37) with MicroPython
Replies: 2
Views: 201

Re: Rain Sensor (FC-37) with MicroPython

As @jimmo says, it is quite easy with micropython. Here is my code: from machine import Pin, ADC from time import sleep d = Pin(27, Pin.IN) adc = ADC(Pin(33)) adc.atten(ADC.ATTN_11DB) def loopreading(): while True: if d.value() > 0: x = "No Rain" else: x = "Rain" print(adc.read()," ",x) sleep(1) loo...
by rpr
Mon Jul 01, 2019 2:55 am
Forum: ESP8266 boards
Topic: machine.reset(0 output
Replies: 2
Views: 154

Re: machine.reset(0 output

jimmo -- thanks.
by rpr
Mon Jul 01, 2019 12:11 am
Forum: ESP8266 boards
Topic: machine.reset(0 output
Replies: 2
Views: 154

machine.reset(0 output

On my ESP32 when I do machine.reset() or press the RST button, I get readable output on my terminal. On the ESP8266, I gets unreadable characters. Any way to get readable output? I am using rshell with the default baud rate. Thanks.
by rpr
Sat Jun 29, 2019 9:50 am
Forum: Development of MicroPython
Topic: registering python special methods in C class
Replies: 2
Views: 215

Re: registering python special methods in C class

Hopefully Zoltan can find Zoltan's fridge easily. :D
by rpr
Fri Jun 28, 2019 8:10 pm
Forum: ESP8266 boards
Topic: Driver for NEMA 17 stepper motor ?
Replies: 15
Views: 514

Re: Driver for NEMA 17 stepper motor ?

I agree with @jimmo: You don't need the precise positioning that a stepper provides since you are moving the object over distances much larger than the size of the motor. Thanks for updating the diagram. Is this a conveyer belt? How heavy is the belt? Is the belt being supported? You are going to ne...
by rpr
Fri Jun 28, 2019 7:51 pm
Forum: General Discussion and Questions
Topic: double precision float on ESP8266
Replies: 29
Views: 1011

Re: double precision float on ESP8266

See the ports/esp32 help page (README.md)

Try the following.

make PYTHON=python2