Search found 143 matches

by rdagger
Thu May 10, 2018 3:47 pm
Forum: ESP32 boards
Topic: ds18x20 on ESP32
Replies: 2
Views: 2681

Re: ds18x20 on ESP32

I've been using a DS18b20 with the LoBo build and it works great.

Code: Select all

from machine import Onewire
ow = Onewire(23)
ds = Onewire.ds18x20(ow, 0)
temp = ds.convert_read()  # Poll temperature sensor
print(temp)
ow.deinit()
Make sure you use a 10K pull up resistor between 3.3V and the data line.
by rdagger
Sun Apr 22, 2018 5:01 pm
Forum: ESP32 boards
Topic: greenhouse sensors set-up
Replies: 6
Views: 4530

Re: greenhouse sensors set-up

The Lobo build has an MQTT autoreconnect feature. It also allows you to poll the MQTT state to accommodate Wi-Fi disruptions. For example: station = WLAN(STA_IF) client = mqtt(CLIENT_ID, SERVER, autoreconnect=True, cleansession=True, connected_cb=conncb, disconnected_cb=disconncb, published_cb=pubcb...
by rdagger
Sun Apr 22, 2018 4:38 pm
Forum: ESP32 boards
Topic: Anyone recommending a good IDE?
Replies: 20
Views: 25998

Re: Anyone recommending a good IDE?

I use Atom with the remote-ftp and linter-flake8 packages. I run the Lobo firmware with built-in FTP server. The remote-ftp package automatically syncs files in Atom to the ESP32. I adjust the flake8 rules as needed for the differences between Python and MicroPython. The same strategy should also wo...
by rdagger
Thu Feb 08, 2018 3:00 am
Forum: ESP32 boards
Topic: MicroPython on ESP32 with SPIRAM support
Replies: 463
Views: 541416

Re: MicroPython on ESP32 with SPIRAM support

I have had my robot up and driving around today and now need to start to hook all the peripherals up. I need to workout what pins I will ise for what( I am likely to use them all). I want to make sure that I am not connecting something to a pin that shouldn't be used. Can someone confirm that these...
by rdagger
Tue Feb 06, 2018 6:17 pm
Forum: ESP32 boards
Topic: ESP32 touch sensor pins
Replies: 1
Views: 9079

Re: ESP32 touch sensor pins

Here's an example: from machine import Pin, TouchPad touch0 = TouchPad(Pin(4)) touch1 = TouchPad(Pin(0)) touch2 = TouchPad(Pin(2)) touch3 = TouchPad(Pin(15)) touch4 = TouchPad(Pin(13)) touch5 = TouchPad(Pin(12)) touch6 = TouchPad(Pin(14)) touch7 = TouchPad(Pin(27)) touch8 = TouchPad(Pin(33)) touch9 ...
by rdagger
Tue Jan 30, 2018 10:19 pm
Forum: ESP32 boards
Topic: ESP32 maximum PWM frequency
Replies: 17
Views: 59037

Re: ESP32 maximum PWM frequency

All PWM channels using the same timer have the same frequency and phase. PWM channel started with different timer will have some random offset depending on time when the timer was started. It could be possible to synchronize two PWMs, each using a different timer, in such way that one is started at...
by rdagger
Tue Jan 30, 2018 6:39 pm
Forum: ESP32 boards
Topic: ESP32 maximum PWM frequency
Replies: 17
Views: 59037

Re: ESP32 maximum PWM frequency

@laboris Would it be possible to add a feature so you could programmatically invert or offset the duty cycle of some of the channels on a timer?
PWM inverted.png
PWM inverted.png (4.61 KiB) Viewed 10523 times
by rdagger
Wed Jan 10, 2018 7:13 pm
Forum: ESP32 boards
Topic: MicroPython on ESP32 with SPIRAM support
Replies: 463
Views: 541416

Re: MicroPython on ESP32 with SPIRAM support

loboris wrote:
Wed Nov 22, 2017 2:38 pm
Bluetooth does not work, BT module will be (temporarily) removed from build in next commit.
There's a lot of interest in Bluetooth and BLE. Any updates on the BT module?
by rdagger
Mon Jan 08, 2018 7:21 am
Forum: General Discussion and Questions
Topic: inspect.getargspec for function signature
Replies: 4
Views: 3674

Re: inspect.getargspec for function signature

Thanks for your reply. I find myself checking the source frequently especially for ESP32 specific code.
by rdagger
Sun Jan 07, 2018 7:20 pm
Forum: General Discussion and Questions
Topic: inspect.getargspec for function signature
Replies: 4
Views: 3674

inspect.getargspec for function signature

Is there a way to list a function's arguments. I tried inspect.getargspec() from micropython-lib , but I get the following: >>> inspect.getargspec(my_test_function) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "inspect.py", line 37, in getargspec NotImplementedError: T...