Search found 3415 matches

by dhylands
Thu Aug 06, 2020 6:23 pm
Forum: Pyboard D-series
Topic: Trouble with uart.read()
Replies: 6
Views: 466

Re: Trouble with uart.read()

Also, how are you controlling the direction? With RS-485 you need to have a GPIO line or something controlling the direction. I found that controlling that line from python wasn't fast enough and I would miss response characters from the servo. So I had to write the sending portion in assembler to g...
by dhylands
Thu Aug 06, 2020 6:14 pm
Forum: Pyboard D-series
Topic: Trouble with uart.read()
Replies: 6
Views: 466

Re: Trouble with uart.read()

When you send the command to servo 1, you need to wait for the response before sending the command to servo 2. Otherwise your command to servo 2 and the response from servo 1 will trample each other. Only one device can transmit at a time, and the host needs to orchestrate that. I believe that there...
by dhylands
Thu Aug 06, 2020 6:07 pm
Forum: Pyboard D-series
Topic: Trouble with uart.read()
Replies: 6
Views: 466

Re: Trouble with uart.read()

I always just read single characters using uart.read and assemble the packets. I've found that trying to do anything else inevitably breaks down. There is an RX buffer that you can control the size of when you open the UART. If you're expecting multiple messages then it should be big enough to hold ...
by dhylands
Wed Aug 05, 2020 9:16 pm
Forum: Other Boards
Topic: USB problem on STM32F411CEU6
Replies: 5
Views: 848

Re: USB problem on STM32F411CEU6

What host device are you using? Have you tried using a hub between your host and the board? The fact that the REPL works fine on PA9 and PA10 suggests that the clock is being setup properly, otherwise your baud rate wouldn't work out. I would also double check your power/ground connections from the ...
by dhylands
Wed Aug 05, 2020 5:04 pm
Forum: Pyboard D-series
Topic: Trouble with uart.read()
Replies: 6
Views: 466

Re: Trouble with uart.read()

I found the comms protocol for the XM-430 here: https://emanual.robotis.com/docs/en/dxl/protocol2/ It appears to be similar but not identical to the that used by the AX-12: https://emanual.robotis.com/docs/en/dxl/protocol1/ I'm not 100% sure, but it looks like the XM430 can use protocol version 1, b...
by dhylands
Wed Aug 05, 2020 4:53 pm
Forum: Pyboard D-series
Topic: Trouble with uart.read()
Replies: 6
Views: 466

Re: Trouble with uart.read()

I've got micropythyon code for talking with Dyanmixel AX-12's (and family). It looks like the XM430's use the same packet layout. It has a parser that will read one byte at a time and spit out the packets as they are parsed. It looks like the XM430's use D+/D- (full duplex) whereas the AX-12's use h...
by dhylands
Tue Aug 04, 2020 4:48 am
Forum: Other Boards
Topic: WeActSTM32F411CEU6 directory structure
Replies: 4
Views: 487

Re: WeActSTM32F411CEU6 directory structure

Your directory structure should match that found here:
https://github.com/micropython/micropython
by dhylands
Mon Aug 03, 2020 9:48 pm
Forum: Other Boards
Topic: WeActSTM32F411CEU6 directory structure
Replies: 4
Views: 487

Re: WeActSTM32F411CEU6 directory structure

It doesn't matter whether the top directory is named micropython or micropython-1.12. Personally, I have ~/micropython/micropython/ports/stm32 The WeACTSTM32F411CEU6 files (from https://github.com/mcauser/WEACT_F411CEU6) need to fo in a directory called WEACT_F411CEU6 found inside ports/stm32/boards...
by dhylands
Mon Aug 03, 2020 9:36 pm
Forum: Other Boards
Topic: USB problem on STM32F411CEU6
Replies: 5
Views: 848

Re: USB problem on STM32F411CEU6

The STM32F4 series has a built in DFU bootloader - no need to flash one.

In order to use USB, you should have your PLL frequencies setup so that the system clock is a multiple of 48 MHz, so you should run it at 96 MHz rather than 100 MHz.
by dhylands
Thu Jul 30, 2020 7:33 pm
Forum: Programs, Libraries and Tools
Topic: Build upython on stm32cube ide?
Replies: 3
Views: 224

Re: Build upython on stm32cube ide?

Some of the peripherals are accessed through the HAL layer, and some are accessed directly.