Search found 20 matches

by Andrew1234
Fri Jul 29, 2022 2:09 pm
Forum: Other Boards
Topic: Load uP on STM Nucleo
Replies: 4
Views: 23349

Re: Load uP on STM Nucleo

Thanks for your advice. I had thought STMCubeProgrammer would be most straightforward, but there doesn't seem to be any clear path with this tool. I had found this ST-LINK tool on ST website, but it says it is replaced by STMCubeProgrammer: https://www.st.com/en/development-tools/stsw-link004.html O...
by Andrew1234
Wed Jul 27, 2022 11:47 pm
Forum: MicroPython pyboard
Topic: SPI Import Question
Replies: 1
Views: 20236

SPI Import Question

Should SPI be an import from pyb, or from machine? The document here indicates to import from machine: https://docs.micropython.org/en/latest/library/machine.SPI.html But the pyboard quick reference imports from pyb: https://docs.micropython.org/en/latest/library/pyb.SPI.html#pyb-spi The methods are...
by Andrew1234
Wed Jul 27, 2022 1:56 pm
Forum: Other Boards
Topic: Load uP on STM Nucleo
Replies: 4
Views: 23349

Load uP on STM Nucleo

Hi Forum I have a STM32F411 Nucleo Board, and I'm running Win11. I want to use STM32CubeProgrammer to upload Micropython via the ST-LINK attached programmer. I can successfully connect with STM32CubeProgrammer and USB to the attached ST-LINK board. I can find the NUCLEO_F411RE-20220618-v1.19.1.hex f...
by Andrew1234
Mon Jul 18, 2022 2:14 pm
Forum: MicroPython pyboard
Topic: pyboard and Si5351
Replies: 2
Views: 21413

Re: pyboard and Si5351

Hi Jimmo Thanks for your input. I'll try talking to the device at the expected address and see what I get. I do have a scope and can try to analyze the signals as well. Yes, the library you found is the very one that I am trying to use. Unfortunately I didn't find a test script in that repository th...
by Andrew1234
Mon Jul 18, 2022 12:33 am
Forum: MicroPython pyboard
Topic: pyboard and Si5351
Replies: 2
Views: 21413

pyboard and Si5351

I am using a pyboard connected to an adafruit Si5351 eval board. I have gnd and 3v3 on the pyboard connected to GND and VIN of the Si5351 board. The I2C interface on the Si5351 board is connected to X9 (clock) and X10 (data) of the pyboard. When I call i2c.scan(), the return is as follows: [8, 9, 10...
by Andrew1234
Sun Jul 10, 2022 11:51 pm
Forum: MicroPython pyboard
Topic: 16 x 2 LCD
Replies: 5
Views: 24614

Re: 16 x 2 LCD

Thanks for sharing your modifications. This is useful to me.
Regards
Andy
by Andrew1234
Sun Jul 10, 2022 2:21 am
Forum: MicroPython pyboard
Topic: 16 x 2 LCD
Replies: 5
Views: 24614

Re: 16 x 2 LCD

Ah, thank you, scruss. I thought the returned value was in hex. That's good news for me as far as the HW goes.
Regards
Andy
by Andrew1234
Sun Jul 10, 2022 12:50 am
Forum: MicroPython pyboard
Topic: 16 x 2 LCD
Replies: 5
Views: 24614

16 x 2 LCD

I have a 16x2 LCD that I want to use with a pyboard and Dave Hylands' python_lcd API that can be found here: https://github.com/dhylands/python_lcd My LCD display is described here: https://wiki.52pi.com/index.php?title=Z-0234 The chip on the 'backpack' of my LDC is marked as a PCF8574T. The API exp...
by Andrew1234
Thu Mar 03, 2022 9:27 pm
Forum: MicroPython pyboard
Topic: Basic Timer Question
Replies: 4
Views: 3162

Re: Basic Timer Question

Hi Dave I adjusted the code based on your response and the example you provided as below: import pyb def light(tim): led = pyb.LED(4) led.toggle() tim = pyb.Timer(1, freq=10) # freq in Hz tim.callback(light) This now works as expected. I left led as a local variable for now. I'm a little confused ab...
by Andrew1234
Thu Mar 03, 2022 6:21 pm
Forum: MicroPython pyboard
Topic: Basic Timer Question
Replies: 4
Views: 3162

Basic Timer Question

I am using a pyboard and trying to figure out how to use the timer. I expect the below code to use Timer 1 and call function 'light' at the rate of once per second, and so I expect the LED(4) to toggle each second. The actual result is that the blue LED toggles state once. Can someone tell me why, a...