Search found 126 matches
- Wed Feb 02, 2022 6:17 am
- Forum: ESP8266 boards
- Topic: serial communication and variables
- Replies: 15
- Views: 18804
Re: serial communication and variables
If you want to send message to the UART, you can use Adafruit 954, it's a USB-to-serial cable which uses 3.3V logic levels. Then you need a serial terminal like picocom, minicom, PuTTY...
- Tue Feb 01, 2022 8:30 pm
- Forum: ESP8266 boards
- Topic: serial communication and variables
- Replies: 15
- Views: 18804
Re: serial communication and variables
It's like a multidimensional dict. It also work with json . You can do it like that: cars = { 'chevrolet': { 'corsa_2005': (0, 1, 0, 1, 0, 1, ), 'corsa_2006_2010': (0, 1, 0, 1, 0, 1, ), 'corsa_2011_2016': (0, 1, 0, 1, 0, 1, ), 'aveo_2008_2012': (0, 1, 0, 1, 0, 1, ), }, 'ford': { 'fiesta_2006': (0, 1...
- Sat Jan 29, 2022 9:17 am
- Forum: ESP8266 boards
- Topic: serial communication and variables
- Replies: 15
- Views: 18804
Re: serial communication and variables
In that case, defined a colors dictionary with all your color. Send with uart the name of the color and get it from the dictionary. from machine import UART uart = UART(1, 9600) # init with given baudrate uart.init(9600, bits=8, parity=None, stop=1) # init with given parameters colors = { 'RED': (1,...
- Fri Jan 28, 2022 3:22 pm
- Forum: ESP8266 boards
- Topic: serial communication and variables
- Replies: 15
- Views: 18804
Re: serial communication and variables
I would try to use UART . You can readline() into your enter_list . readline() is a str , but you can convert each char in an int . from machine import UART uart = UART(1, 9600) # init with given baudrate uart.init(9600, bits=8, parity=None, stop=1) # init with given parameters enter_list = uart.rea...
- Fri Jan 21, 2022 3:48 pm
- Forum: Programs, Libraries and Tools
- Topic: Detection if device is moving (in motion) or not
- Replies: 23
- Views: 56365
Re: Detection if device is moving (in motion) or not
For asyncio , Peter alias pythoncoder is the reference. I'm coding a driver for MPU6050 using interrupt pin. With the interrupt and setting at 15.625Hz I get all updated data without losing any. I've implemented a complementary filter. Read the code and let know if you have questions. # Author: Oli...
- Thu Jan 13, 2022 5:50 pm
- Forum: Programs, Libraries and Tools
- Topic: Detection if device is moving (in motion) or not
- Replies: 23
- Views: 56365
Re: Detection if device is moving (in motion) or not
For asyncio , Peter alias pythoncoder is the reference. I'm coding a driver for MPU6050 using interrupt pin. With the interrupt and setting at 15.625Hz I get all updated data without losing any. I've implemented a complementary filter. Just thinking about it....could you use this interrupt to wake ...
- Thu Jan 13, 2022 9:52 am
- Forum: Programs, Libraries and Tools
- Topic: Detection if device is moving (in motion) or not
- Replies: 23
- Views: 56365
Re: Detection if device is moving (in motion) or not
For asyncio , Peter alias pythoncoder is the reference. I'm coding a driver for MPU6050 using interrupt pin. With the interrupt and setting at 15.625Hz I get all updated data without losing any. I've implemented a complementary filter. Stupid question: That's a hardware interrupt of the MPU6050 sen...
- Thu Jan 13, 2022 6:14 am
- Forum: Drivers for External Components
- Topic: install micropython-mcp7940
- Replies: 2
- Views: 24099
Re: install micropython-mcp7940
Site awesome-micropython.com is a good starting point. You can find a lot of driver here.
For MCP7940 the repo is here.
Download mcp7940.py and copy it to your device.
Using rshell:
For MCP7940 the repo is here.
Download mcp7940.py and copy it to your device.
Using rshell:
Code: Select all
rshell -p /dev/ttyUSB0
cp mcp7940.py /pyboard/
- Thu Jan 13, 2022 5:58 am
- Forum: Drivers for External Components
- Topic: install micropython-mcp7940
- Replies: 2
- Views: 24099
- Wed Jan 12, 2022 7:54 pm
- Forum: Programs, Libraries and Tools
- Topic: Detection if device is moving (in motion) or not
- Replies: 23
- Views: 56365
Re: Detection if device is moving (in motion) or not
For asyncio , Peter alias pythoncoder is the reference. I'm coding a driver for MPU6050 using interrupt pin. With the interrupt and setting at 15.625Hz I get all updated data without losing any. I've implemented a complementary filter. Read the code and let know if you have questions. # Author: Oliv...