Search found 4 matches

by jgui
Sun Oct 18, 2020 8:44 pm
Forum: MicroPython pyboard
Topic: DAC.write() generates unexpected perturbation
Replies: 1
Views: 1560

DAC.write() generates unexpected perturbation

For a project I need to generate a clean voltage profile and found an unexpected behavior when using DAC.write(): each call of this method generates a wave on the output, even when called with the same value. So I try to use DAC.write_timed() and in this case this wave is not generated. Amplitude of...
by jgui
Mon Jul 16, 2018 10:25 pm
Forum: MicroPython pyboard
Topic: How to init a counter for QEI mode?
Replies: 3
Views: 3807

Re: How to init a counter for QEI mode?

Here's an example I coded up when I was writing the encoder support: https://github.com/dhylands/upy-examples/blob/master/encoder2.py and another example where I used the pyboard to generate a quadrature output (and looped that back to decode) https://github.com/dhylands/upy-examples/blob/master/en...
by jgui
Thu Jun 14, 2018 12:34 pm
Forum: MicroPython pyboard
Topic: CAN bus API
Replies: 1
Views: 2262

CAN bus API

Why id type (extended / standard) is not handled the same way as frame type (RTR / not RTR)? Instead of: CAN.init(mode, extframe=False, prescaler=100, *, sjw=1, bs1=6, bs2=8, auto_restart=False) CAN.send(data, id, *, timeout=0, rtr=False) (id, RTR, FMI, DATA) = CAN.recv(fifo, list=None, *, timeout=5...
by jgui
Sun Nov 20, 2016 10:27 pm
Forum: MicroPython pyboard
Topic: CAN with extframe=True do not receive message with standard ID
Replies: 3
Views: 4708

CAN with extframe=True do not receive message with standard ID

I'm using the pyboard to communicate with a product via CAN bus. This product sends and receives messages both with extended and standard ID. As the pyboard has to send message with extended ID for the product to operate, I first configure the CAN module: > with option extframe=True > and set the fi...