Search found 37 matches

by ilium007
Wed Apr 06, 2022 12:53 pm
Forum: Programs, Libraries and Tools
Topic: Rotary encoder with asyncio?
Replies: 18
Views: 9504

Re: Rotary encoder with asyncio?

The @pythoncoder micropython-async v3 encoder code is working perfectly in my project.

The Mike Teachman code (https://github.com/miketeachman/micropython-rotary) also works but had to modify for my specific encoder design (inverting schmidt triggers on output).
by ilium007
Wed Apr 06, 2022 12:33 pm
Forum: General Discussion and Questions
Topic: How do I make sense of constant's lookup numbers
Replies: 5
Views: 1605

Re: How do I make sense of constant's lookup numbers

I have no idea what CAN does. CANbus is a physical layer protocol for communications between microcontrollers / devices. It's widely used in automotive applications / industrial applications to allow devices to talk in 'noisy' environments over just two wires. I am building a project to allow micro...
by ilium007
Wed Apr 06, 2022 12:29 pm
Forum: General Discussion and Questions
Topic: How do I make sense of constant's lookup numbers
Replies: 5
Views: 1605

Re: How do I make sense of constant's lookup numbers

ahh ok, got it. I was looking at it all from the wrong side!
by ilium007
Wed Apr 06, 2022 12:35 am
Forum: General Discussion and Questions
Topic: How do I make sense of constant's lookup numbers
Replies: 5
Views: 1605

How do I make sense of constant's lookup numbers

Not sure if I have worded this correctly but I am not sure how to look up constant's values. ie. >>> >>> can1.state() 2 >>> >>> >>> can1. any send BUS_OFF ERROR_ACTIVE ERROR_PASSIVE ERROR_WARNING LIST16 LIST32 LOOPBACK MASK16 MASK32 NORMAL SILENT SILENT_LOOPBACK STOPPED clearfilter deinit info init ...
by ilium007
Tue Apr 05, 2022 10:34 am
Forum: General Discussion and Questions
Topic: CANbus project question
Replies: 2
Views: 1079

Re: CANbus project question

I noticed that the SN65HVD230 3.3 V CAN Transceiver breakout board that I'm prototyping with did not have bypass capacitors on the 3.3v pin. I placed a 100 nF cap on this pin and it seems to be working.
by ilium007
Tue Apr 05, 2022 9:46 am
Forum: General Discussion and Questions
Topic: CANbus project question
Replies: 2
Views: 1079

Re: CANbus project question

The project has been sitting on my desk running for the past 7 hours and I just pressed the button 5 times and it registered an additional 11 CANbus messages on the second microcontroller.
Screen Shot 2022-04-05 at 7.45.09 pm.png
Screen Shot 2022-04-05 at 7.45.09 pm.png (262.02 KiB) Viewed 1059 times
by ilium007
Tue Apr 05, 2022 3:58 am
Forum: General Discussion and Questions
Topic: CANbus project question
Replies: 2
Views: 1079

CANbus project question

I am trying to get my CANbus project going and look at the Peter Hinch pushbutton asyncio class. I have two Adafruit STMF405's with CANbus transceivers connected and communicating. UC1 is running the pushbutton class with a button and sending the CANbus msg: from machine import Pin import uasyncio a...
by ilium007
Mon Apr 04, 2022 8:55 am
Forum: General Discussion and Questions
Topic: IDE for developing on multiple MicroPython boards concurrently
Replies: 1
Views: 905

IDE for developing on multiple MicroPython boards concurrently

Looking for options for a MicroPython IDE that will allow me to connect to a REPL interface on two boards concurrently. I have tried PyMakr plugins for both Visual Code and Atom and both refuse to install on OSX 12.1. I am currently running two OSX iTerm windows each connected to the boards' REPL in...
by ilium007
Sun Apr 03, 2022 5:02 am
Forum: General Discussion and Questions
Topic: ADAFRUIT_F405_EXPRESS and CANbus num_filter_banks
Replies: 2
Views: 1169

Re: ADAFRUIT_F405_EXPRESS and CANbus num_filter_banks

Just realised there have been breaking changes in the github code for can.c relating to extended id's and I was looking at the 'latest' doco (even though it says v1.18 at top of doco page). The version https://docs.micropython.org/en/v1.18/library/pyb.CAN.html#pyb-can has the 1.18 release doco that ...
by ilium007
Sun Apr 03, 2022 4:54 am
Forum: General Discussion and Questions
Topic: ADAFRUIT_F405_EXPRESS and CANbus num_filter_banks
Replies: 2
Views: 1169

Re: ADAFRUIT_F405_EXPRESS and CANbus num_filter_banks

Getting the same error when trying to set the filter with extframe=True. It fails and I can't receive a CAN frame that was sent with extframe=True.