Search found 15 matches

by ghilliesuit
Wed Jul 27, 2022 12:43 am
Forum: Drivers for External Components
Topic: VL53L1X ToF distance sensor - adapting to micropython
Replies: 19
Views: 66081

Re: VL53L1X ToF distance sensor - adapting to micropython

The following code works on my Raspberry Pi Pico running uPy v1.19. This code was adapted from the OpenMV file which available on their github. I added a few things and cut down on some of the sleep times. import rp2 from machine import Pin, I2C import utime VL51L1X_DEFAULT_CONFIGURATION = bytes([ 0...
by ghilliesuit
Tue Jul 19, 2022 2:55 am
Forum: Other Boards
Topic: Adafruit Feather M4 Express CAN
Replies: 3
Views: 22955

Re: Adafruit Feather M4 Express CAN

According to specs it's the ATSAME51J19. No worries. There is Circuit Python or C++. I may dust off my C++ just to brush up on those skills again. I'll keep checking back to see if future support is added. I'm an embedded newbie so performing a port myself just isn't realistic. Love the uPy project ...
by ghilliesuit
Sun Jul 17, 2022 10:55 pm
Forum: Other Boards
Topic: Adafruit Feather M4 Express CAN
Replies: 3
Views: 22955

Adafruit Feather M4 Express CAN

Is there an operational uPy port UF2 out there for these?

I could use Circuit Python or C/C++, but I'm growing accustomed to uPy at this point. Hoping someone is sitting on this and is willing to share.
by ghilliesuit
Sun Mar 06, 2022 11:45 pm
Forum: Raspberry Pi microcontroller boards
Topic: MPU-6050 Library (PythonCoder)
Replies: 10
Views: 9108

Re: MPU-6050 Library (PythonCoder)

Duh. Right. :oops: Just had a look at dec <-> hex conversions. Thank you, that is going to be helpful moving forward.
by ghilliesuit
Sun Mar 06, 2022 6:32 pm
Forum: Raspberry Pi microcontroller boards
Topic: MPU-6050 Library (PythonCoder)
Replies: 10
Views: 9108

Re: MPU-6050 Library (PythonCoder)

Okay, wired this into raspi 4b running 64bit RP OS and installed circuitpython library. Ran the example code and it performed perfectly. So I switched it back into the Pico breadboard. I made the following edit to imu.py on the Pico # chip_id @property def chip_id(self): ''' Returns Chip ID ''' try:...
by ghilliesuit
Sun Mar 06, 2022 4:07 pm
Forum: Raspberry Pi microcontroller boards
Topic: MPU-6050 Library (PythonCoder)
Replies: 10
Views: 9108

Re: MPU-6050 Library (PythonCoder)

First thanks for the help. Here is a link to the item at Adafruit , since I didn't provide that above. I installed a pair of 4.7k Ohm resistors from SCL and SDA to +3.3v. All wiring is currently breadboard level (less than 6" linear circuit length per line). The PCB breakout is silkscreened as "MPU-...
by ghilliesuit
Fri Mar 04, 2022 11:07 pm
Forum: Raspberry Pi microcontroller boards
Topic: MPU-6050 Library (PythonCoder)
Replies: 10
Views: 9108

MPU-6050 Library (PythonCoder)

Hello, Question for PythonCoder in reference to his IMU library. Using the following code: # Append sys.path to reflect Pico directories import sys sys.path.append('/as_GPS') sys.path.append('/IMU') # Import required libraries import uasyncio as asyncio import as_GPS from imu import MPU6050 import v...
by ghilliesuit
Sun Feb 27, 2022 4:47 pm
Forum: Raspberry Pi microcontroller boards
Topic: [SOLVED] UART for GPS
Replies: 14
Views: 7593

Re: UART for GPS

...I ran 'pip3 install primitives' that went well. ... I have my doubts about that as none of my libraries are installed on PyPi. I'm not sure what you installed here... You need to copy the files to your device using a tool such as rshell or official mpremote . Learning to use one of these tools i...
by ghilliesuit
Sun Feb 27, 2022 1:51 pm
Forum: Raspberry Pi microcontroller boards
Topic: [SOLVED] UART for GPS
Replies: 14
Views: 7593

Re: UART for GPS

I look into rshell and mpremote. Thanks again. Just for reference - not sure what I installed either pi@raspberrypi:~ $ pip3 install primitives Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: primitives in ./.local/lib/python3.9/site-packag...
by ghilliesuit
Sun Feb 27, 2022 1:32 pm
Forum: Raspberry Pi microcontroller boards
Topic: [SOLVED] UART for GPS
Replies: 14
Views: 7593

Re: UART for GPS

@pythoncoder I would love to use these libraries, however I got hung up pretty quickly. I am admittedly a novice user - so please forgive me :lol: . I have been using the Raspberry Pi 4B since it came out to do different projects (stepper motors, IO, 3 axis accelerometer, etc..) but have only used P...