Search found 20 matches
- Fri Feb 18, 2022 1:06 pm
- Forum: MicroPython pyboard
- Topic: Pin ID on pyboard
- Replies: 16
- Views: 7511
Re: Pin ID on pyboard
Can you provide a specification reference to the encoder? I am just interested to learn more about the encoder hardware that people are using. Also, how are you using the encoder? e.g. manual turning? other? I'm experimenting with a Taiss incremental rotary encoder with 600 pulses per revolution. I...
- Thu Feb 17, 2022 11:19 pm
- Forum: MicroPython pyboard
- Topic: Pin ID on pyboard
- Replies: 16
- Views: 7511
Re: Pin ID on pyboard
Okay, I was hoping that the examples in Mike's repo that use uasynchio would give good results even with a high P/R rating. I still plan to give that a try to compare versus the example_simple.py in the documentation. After that, I'll look into the timer based approaches. I don't have experience wit...
- Thu Feb 17, 2022 1:21 am
- Forum: MicroPython pyboard
- Topic: Pin ID on pyboard
- Replies: 16
- Views: 7511
Re: Pin ID on pyboard
Don't worry that it says it needs an integer just pass the string for the pin for the pyboard and it will work looking at the code Yes thank you OutoftheBOTS_, you are right. I passed the string for the pin name and I now get a response from the encoder. And thanks Mike for your response. Generally...
- Tue Feb 15, 2022 12:51 pm
- Forum: MicroPython pyboard
- Topic: Pin ID on pyboard
- Replies: 16
- Views: 7511
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...
- Mon Feb 14, 2022 10:34 pm
- Forum: MicroPython pyboard
- Topic: Pin ID on pyboard
- Replies: 16
- Views: 7511
Pin ID on pyboard
Hello: I want to use a rotary encoder with the pyboard using the following module: https://github.com/miketeachman/micropython-rotary From documentation, the class RotaryIRQ has arguments pin_num_clk and pin_num_dt that have an integer value. These arguments specify the GPIOs on the microcontroller ...
- Mon Oct 25, 2021 4:24 pm
- Forum: MicroPython pyboard
- Topic: Read/Write uC internal memory
- Replies: 3
- Views: 16784
Re: Read/Write uC internal memory
Thanks very much. I'll look into that idea further. Also my example doesn't make too much sense, since I can just read the ADC again on power-up. But the general question remains (if for example I used a pair of GPIOs to implement up-down buttons, and I want to recall the final volume setting). Anot...
- Mon Oct 25, 2021 12:55 pm
- Forum: MicroPython pyboard
- Topic: Read/Write uC internal memory
- Replies: 3
- Views: 16784
Read/Write uC internal memory
I want to write a value to the internal non-volatile memory of the uC, so it can be retrieved after a subsequent startup. I don't see a library function to do this in the quick reference guide for the pyboard. For example, suppose I read a value from the ADC, and I use that value to set a volume con...
- Sun Oct 17, 2021 11:19 am
- Forum: MicroPython pyboard
- Topic: I2C Question
- Replies: 4
- Views: 18925
Re: I2C Question
Okay I'm starting to see now -- you mean the ascii printable characters
Would you say that I'm formatting this in the best way possible? My preference would be to input hex values in the function call, and get hex values in the return value. Maybe that isn't possible..
Regards
Andy
Would you say that I'm formatting this in the best way possible? My preference would be to input hex values in the function call, and get hex values in the return value. Maybe that isn't possible..
Regards
Andy
- Sun Oct 17, 2021 10:55 am
- Forum: MicroPython pyboard
- Topic: I2C Question
- Replies: 4
- Views: 18925
Re: I2C Question
Thanks for the reply! The six bytes I meant to write are these (with decimal in parentheses) 00000000 - (0) 00000001 - (1) 00000000 - (0) 00000000 - (0) 00100000 - (32) 00000011 - (3) My corrected code still has an output that I don't understand: from machine import I2C i2c = I2C('X') i2.scan() # re...
- Sat Oct 16, 2021 11:32 pm
- Forum: MicroPython pyboard
- Topic: I2C Question
- Replies: 4
- Views: 18925
I2C Question
I want to use my pyboard v1.1 to control an audio codec, the ADAU1361. www.analog.com/adau1361 The ADAU1361 has a PLL register at address 0x4002 that takes 6 bytes (48-bit register that must be written with a single continuous write) My test code: from machine import I2C i2c = I2C('X') i2.scan() # r...