Search found 40 matches
- Fri Oct 22, 2021 6:19 pm
- Forum: ESP8266 boards
- Topic: Sensor works properly when not "put" on the device
- Replies: 0
- Views: 1386
Sensor works properly when not "put" on the device
When I upload the code below to a Wemos D1 mini, using ampy put , the ultrasonic sensor gets false readings from across the room. But when I just run the code on the device, using ampy run . Any idea on why that might be? from hcsr04 import HCSR04 from machine import Pin, Signal import utime sensor ...
- Thu Oct 07, 2021 11:44 am
- Forum: ESP32 boards
- Topic: Adafruit STEMMA Soil Sensor driver
- Replies: 11
- Views: 7824
Re: Adafruit STEMMA Soil Sensor driver
You can draw a schematic, even in MS paint (though vector based drawing is much better). A schematic is just a visual representation of the circuit so we can talk about it. It's clearly available, you just haven't produced it yet :) Is the power supply adequate? How are you powering it, and how muc...
- Wed Oct 06, 2021 11:37 am
- Forum: ESP32 boards
- Topic: Adafruit STEMMA Soil Sensor driver
- Replies: 11
- Views: 7824
Re: Adafruit STEMMA Soil Sensor driver
you need to check the connections and make sure they correspond correctly to the pin declarations. is sda connected to sda? is that pin declared as sda in the code? etc. post the schematic you are using and confirm you have connected everything according to the schematic if the connection is correc...
- Tue Oct 05, 2021 10:32 pm
- Forum: ESP32 boards
- Topic: Adafruit STEMMA Soil Sensor driver
- Replies: 11
- Views: 7824
Re: Adafruit STEMMA Soil Sensor driver
It looks like you are correct. Here is what I ran and the results import machine i2c = machine.I2C(scl=machine.Pin(5), sda=machine.Pin(4)) print('Scan i2c bus...') devices = i2c.scan() print(devices) if len(devices) == 0: print("No i2c device !") else: print('i2c devices found:',len(devices)) for de...
- Tue Oct 05, 2021 1:03 am
- Forum: ESP32 boards
- Topic: Adafruit STEMMA Soil Sensor driver
- Replies: 11
- Views: 7824
Re: Adafruit STEMMA Soil Sensor driver
Thank you both for steering me in the right direction. I've managed to strip Adafruit's drivers down to the essentials and this is what works for me: I've published the code and usage instructions at https://github.com/mihai-dinculescu/micropython-adafruit-drivers/tree/master/seesaw . Couldn't get ...
- Thu Aug 19, 2021 7:13 pm
- Forum: ESP32 boards
- Topic: ESP-Now support for ESP32 (and ESP8266)
- Replies: 368
- Views: 1514896
Re: ESP-Now support for ESP32 (and ESP8266)
Thank you. I've been having a bit of an issue with receiving an ESP-Now message and then sending a text to my phone. Both work separately, but not together. This works fine: wifi = network.WLAN(network.STA_IF) # needs to be STA_IF wifi .active(True) e = espnow.ESPNow() e.init() e.add_peer(mac) while...
- Wed Aug 18, 2021 8:08 pm
- Forum: ESP32 boards
- Topic: ESP-Now support for ESP32 (and ESP8266)
- Replies: 368
- Views: 1514896
Re: ESP-Now support for ESP32 (and ESP8266)
Awesomeness! I think everything is working properly now. Here is what I ended up implementing: Check/print the return value from e.send(peer, msg). This will return True if the msg has been acknowledged by the peer and False if not. I forgot about this. Great way to troubleshoot. In particular, it m...
- Wed Aug 18, 2021 3:19 am
- Forum: ESP32 boards
- Topic: ESP-Now support for ESP32 (and ESP8266)
- Replies: 368
- Views: 1514896
Re: ESP-Now support for ESP32 (and ESP8266)
I tried using two ESP32 devices, that are the same, but I have the same issue. It looks like irecv() is timing out at the default 5 minutes, since it's printing msg as 'None'. Every once-in-a-while it will receive a message from the other device. Not very often though. So it can't be that I have an ...
- Wed Aug 18, 2021 1:50 am
- Forum: ESP32 boards
- Topic: ESP-Now support for ESP32 (and ESP8266)
- Replies: 368
- Views: 1514896
Re: ESP-Now support for ESP32 (and ESP8266)
It's a ESP32-D0WD-V3 (revision 3).
- Tue Aug 17, 2021 10:11 pm
- Forum: ESP32 boards
- Topic: ESP-Now support for ESP32 (and ESP8266)
- Replies: 368
- Views: 1514896
Re: ESP-Now support for ESP32 (and ESP8266)
The sender is an ESP32U-01. I won't be able to use an ESP8266 for both but I'll try an ESP32 for both. I looked up utime.sleep() and it doesn't seem any different from time.sleep() other than it's for MicroPython. Maybe I'm missing something there. Also, why does it need a while loop? Thanks.