Search found 24 matches

by ryanGT
Sat Mar 12, 2022 8:48 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 290
Views: 469291

Re: Teensy 4.0 & 4.1

I was able to build micropython with ulab for teensy 4.1 without too much trouble.
by ryanGT
Sat Mar 12, 2022 5:40 pm
Forum: Other Boards
Topic: [teensy41] i2c problems
Replies: 7
Views: 3832

Re: [teensy41] i2c problems

Thanks again. So I pretty much got lucky. As far as wire length, I'm talking two to three inches maximum as the teensy is plugged into a shield that's mounted on top of the Arduino. So it can only get 3 inches away worse case. I think you're saying it would always be safer to have stronger pull-ups.
by ryanGT
Sat Mar 12, 2022 4:51 pm
Forum: Other Boards
Topic: [teensy41] i2c problems
Replies: 7
Views: 3832

Re: [teensy41] i2c problems

So, I forgot to include external pullup resistors in a custom arduino shield I made with a level shifter and everything worked fine. I think this is because my level shifter has pullup resistors in it (thought maybe 10K instead of 4k7): https://learn.sparkfun.com/tutorials/bi-directional-logic-level...
by ryanGT
Sat Mar 05, 2022 3:14 pm
Forum: Other Boards
Topic: [teensy41] help getting started
Replies: 8
Views: 31497

Re: [teensy41] help getting started

mpremote --help doesn't work on my version. I installed from pip. I really did try to find a way to combined the proper port with the mount command, but I only tried to pass the portname as an extra parameter to mount; I never tried connect and mount in the same command. Your command works perfectly...
by ryanGT
Sat Mar 05, 2022 3:10 pm
Forum: Other Boards
Topic: [teensy41] i2c problems
Replies: 7
Views: 3832

Re: [teensy41] i2c problems

Thanks Robert. I would have never thought to check the pullups. I guess I have been spoiled by the devices I have used. This is my first time using a teensy. For some reason, scan still doesn't work. Not sure if I would have to program my Arduino to follow some protocol there. But I can send a messa...
by ryanGT
Sat Mar 05, 2022 1:40 am
Forum: Other Boards
Topic: [teensy41] i2c problems
Replies: 7
Views: 3832

[teensy41] i2c problems

I am now having trouble getting started with i2c on the teensy 4.1. Based on this: https://github.com/robert-hh/micropython/blob/mimxrt_docs/docs/mimxrt/quickref.rst I believe i2c hardware port 0 refers to pins 18 (sda) and 19 (scl). I have those pins along with ground and 3.3V connected to a level ...
by ryanGT
Fri Mar 04, 2022 10:32 pm
Forum: Other Boards
Topic: [teensy41] help getting started
Replies: 8
Views: 31497

Re: [teensy41] help getting started

So, I can copy code using rshell. So that solves my immediate issue. Not sure why mpremote doesn't work for me, but I am guessing rshell is able to find the correct port while I suspect that mpremote does not.
by ryanGT
Fri Mar 04, 2022 10:12 pm
Forum: Other Boards
Topic: [teensy41] help getting started
Replies: 8
Views: 31497

Re: [teensy41] help getting started

Not sure if this is related to my problem or not, but if I try mpremote without any arguments, I get this response: $mpremote Connected to MicroPython at /dev/cu.Bluetooth-Incoming-Port So, the default device is not my teensy (/dev/cu.usbmodem14401 or /dev/tty.usbmodem14401). So, if I try to do "mpr...
by ryanGT
Fri Mar 04, 2022 7:45 pm
Forum: Other Boards
Topic: [teensy41] help getting started
Replies: 8
Views: 31497

[teensy41] help getting started

I am having trouble getting started with upython on my teensy 4.1. I can connect to it and use the repl in either rshell or using the command: mpremote connect /dev/tty.usbmodem14401 But I don't know how to copy a python script onto it. If I try mpremote mount . it hangs forever. If I do a keyboard ...
by ryanGT
Thu Mar 03, 2022 9:48 pm
Forum: General Discussion and Questions
Topic: Repeatable, periodic glitch in timer
Replies: 4
Views: 2272

Re: Repeatable, periodic glitch in timer

Thanks for the quick responses. I did the thing where I tried to post the minimum needed to recreate my problem, but by not giving more context the problem could not be fully understood. My bad. I am trying to create a real-time feedback control system using a pyboard and an Arduino together. I have...