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.
Search found 40 matches
- Sun Jul 07, 2019 6:20 am
- Forum: ESP32 boards
- Topic: Rain Sensor (FC-37) with MicroPython
- Replies: 2
- Views: 201
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...
- Fri Jun 28, 2019 8:10 pm
- Forum: ESP8266 boards
- Topic: Driver for NEMA 17 stepper motor ?
- Replies: 15
- Views: 514
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...