Search found 847 matches

by OutoftheBOTS_
Fri Feb 18, 2022 8:52 am
Forum: MicroPython pyboard
Topic: Pin ID on pyboard
Replies: 16
Views: 6748

Re: Pin ID on pyboard

Although we call then timers whats a timer really is is a hardware counter. It can count up or down and it will count 1 step every time the input clock ticks. These timers can have input clocks in the MHz. How the timer can be used to count encoders is that 2 encoder pins go through some logic circu...
by OutoftheBOTS_
Thu Feb 17, 2022 10:05 am
Forum: MicroPython pyboard
Topic: Pin ID on pyboard
Replies: 16
Views: 6748

Re: Pin ID on pyboard

Using software python interrupts to count encoders works fine as long as the freq at which the encoder tick at is low. You will notice that at the repo it has a pic of a dial that just gets turned by hand and will only have low tick freq. If you want to count a fast encoder you will need to use the ...
by OutoftheBOTS_
Wed Feb 16, 2022 9:51 pm
Forum: MicroPython pyboard
Topic: Pin ID on pyboard
Replies: 16
Views: 6748

Re: Pin ID on pyboard

Mike Teachman wrote:
Wed Feb 16, 2022 2:19 pm
note: I also plan to allow Pin class objects to be passed into the initializer (that is a best practice in MicroPython and I should have implemented this long ago).
Yer I like it like that and the same if the driver needs I2C that you pass an object rather than the pin numbers :)
by OutoftheBOTS_
Tue Feb 15, 2022 7:50 pm
Forum: MicroPython pyboard
Topic: Pin ID on pyboard
Replies: 16
Views: 6748

Re: Pin ID on pyboard

for Pyboard, it it is a string like "X1" Yes, this is the what I haven't figured out. The rotary encoder module requires an integer, but the pyboard pin name is a string. The encoder module documentation example is for ESP32, but the documentation also says that the module was tested with a pyboard...
by OutoftheBOTS_
Sun Feb 13, 2022 4:00 am
Forum: ESP32 boards
Topic: Bejazzled ESP32 AKA C3FH4 RGB
Replies: 10
Views: 5450

Re: Bejazzled ESP32 AKA C3FH4 RGB

The ESP32-C3FH4 includes 4MB of internal flash. Micropython GENERIC_C3 is configured for 4MB as well. ESP32-C3.png Thanks for your reply. I notice on the download page there is 2 different bin files for the ESP32 C3, 1 with USB and 1 without USB. Looking at this little board I can't see a UART to U...
by OutoftheBOTS_
Sat Feb 12, 2022 9:08 pm
Forum: ESP32 boards
Topic: Bejazzled ESP32 AKA C3FH4 RGB
Replies: 10
Views: 5450

Bejazzled ESP32 AKA C3FH4 RGB

I have ordered 1 of these https://www.banggood.com/ESP32-C3-Development-Board-RISC-V-WiFi-Bluetooth-IoT-Development-Board-Compatible-with-Python-p-1914005.html?cur_warehouse=CN&utm_design=18&utm_email=1644394927_2332&utm_source=emarsys&utm_medium=Neworder171109&utm_campaign=trigger-order&utm_content...
by OutoftheBOTS_
Sat Feb 05, 2022 10:27 pm
Forum: General Discussion and Questions
Topic: Webrepl protocol
Replies: 2
Views: 2791

Re: Webrepl protocol

Instead of using WebREPL you can use your own sockets to send data from the ESP32 to a python script on your PC over WiFi. I used this method before and got the idea and basic code from here https://stackoverflow.com/questions/59295166/how-to-send-real-time-esp8266-data-through-socket-every-10ms-ern...
by OutoftheBOTS_
Sat Feb 05, 2022 3:13 am
Forum: ESP32 boards
Topic: WebREPL problem with Thonny IDE
Replies: 0
Views: 10295

WebREPL problem with Thonny IDE

OK I have finally worked out the strange behavior with WebREPL on ESP32. It seems the behavior is caused by me using Thonny IDE. It seems Thonny IDE puts the ESP32 boards REPL in to a constant paste mode with echo off and this applies to both UART/USB REPL and WeREPL. If I use PuTTy as a terminal th...
by OutoftheBOTS_
Fri Feb 04, 2022 7:57 pm
Forum: ESP32 boards
Topic: setting PWM timers
Replies: 5
Views: 5415

Re: setting PWM timers

Roberthh wrote:
Fri Feb 04, 2022 10:11 am
Pwm on esp32 is now fixed.
Thanks Robert, I downloaded v.18 and tested it and it worked perfectly for me :)
by OutoftheBOTS_
Thu Feb 03, 2022 11:24 pm
Forum: ESP32 boards
Topic: Choosing ESP32 variant
Replies: 7
Views: 5804

Re: Choosing ESP32 variant

WOW the Lolin boards with 2MB of PsRAM are super cheap and when you buy a batch of 30 the shipping comes out really cheap. I have already brought a 30 of the original style ESP32 boards https://www.aliexpress.com/item/1005001929935550.html?spm=a2g0o.order_list.0.0.21ef1802mqhfC4 In the future I thin...