Search found 847 matches

by OutoftheBOTS_
Fri Mar 04, 2022 8:13 pm
Forum: Raspberry Pi microcontroller boards
Topic: Organizing and storing arrays
Replies: 12
Views: 4807

Re: Organizing and storing arrays

Looking at your code (not totally understanding it) it seems the amount f RAM your using is simple math. Number of samples multiplied by the size of each sample (2 bytes or 4 bytes) packed in to a bytearray. looking at it you have 3 options: 1. choose a MCU with more RAM 2. either reduce the number ...
by OutoftheBOTS_
Thu Mar 03, 2022 7:54 pm
Forum: General Discussion and Questions
Topic: Repeatable, periodic glitch in timer
Replies: 4
Views: 2243

Re: Repeatable, periodic glitch in timer

First why don't you use the hardware timer to toggle the pin? Why are you toggling the pin with software?? Python is a not real time system. It has an interrupter and that interrupter can be doing thing in the back ground like garbage collection. Don't confuse python software call backs and C hardwa...
by OutoftheBOTS_
Wed Mar 02, 2022 9:05 am
Forum: MicroPython pyboard
Topic: UART half duplex for Dynamixel servos
Replies: 7
Views: 4736

Re: UART half duplex for Dynamixel servos

@dhlands Have you looked at the the Robotis dynamixel SDK for both their protocol 1.0 and 2.0 it has implementations in many programming languages. I have used their python SDK on both PC and RPi and it has all the needed low level primitive functionality but could do with a high level API wrapper f...
by OutoftheBOTS_
Wed Mar 02, 2022 12:39 am
Forum: MicroPython pyboard
Topic: UART half duplex for Dynamixel servos
Replies: 7
Views: 4736

Re: UART half duplex for Dynamixel servos

I'd consider an external tri-state gate. The timing of trying to switch the tri-state logic gate using another GPIO pin is near impossile to do, other have tried that from the RPi UART. I did find this circuit for converting full duplex to half duplex on an AVR reference manual. You would also have...
by OutoftheBOTS_
Wed Mar 02, 2022 12:32 am
Forum: MicroPython pyboard
Topic: UART half duplex for Dynamixel servos
Replies: 7
Views: 4736

Re: UART half duplex for Dynamixel servos

Depending the MCU being used, sometimes you don't need any extra hardware. I have a driver, which you can find over here: https://github.com/dhylands/bioloid3/blob/master/bioloid/stm_uart_port.py Thanks # Set HDSEL (bit 3) in CR3 - which puts the UART in half-duplex # mode. This connects Rx to Tx i...
by OutoftheBOTS_
Mon Feb 28, 2022 4:14 am
Forum: MicroPython pyboard
Topic: UART half duplex for Dynamixel servos
Replies: 7
Views: 4736

UART half duplex for Dynamixel servos

I thinking about using Dynamixels Servos on some of my micropython projects. The Dynamixel servos are what many would call a smart servo where the servo has an MCU on it that controls the servo including all PID speed and position and torque control and a master just tells the dynamixel what it want...
by OutoftheBOTS_
Mon Feb 21, 2022 6:53 am
Forum: ESP32 boards
Topic: unstable ESP32
Replies: 7
Views: 2477

Re: unstable ESP32

The cap needs to go between EN and ground. If the voltage on the EN pin dips at all it resets the MCU so you need a small cap on the EN to fill any dips.

From above https://imgur.com/a/YWYB2AO you can see on the left board there isn't a cap on bottom left EN so it becomes unstable
by OutoftheBOTS_
Sat Feb 19, 2022 9:29 pm
Forum: MicroPython pyboard
Topic: Pin ID on pyboard
Replies: 16
Views: 6804

Re: Pin ID on pyboard

Can you provide a specification reference to the encoder? I am just interested to learn more about the encoder hardware that people are using. Also, how are you using the encoder? e.g. manual turning? other? I'm experimenting with a Taiss incremental rotary encoder with 600 pulses per revolution. I...
by OutoftheBOTS_
Sat Feb 19, 2022 9:17 pm
Forum: ESP32 boards
Topic: Bejazzled ESP32 AKA C3FH4 RGB
Replies: 10
Views: 5466

Re: Bejazzled ESP32 AKA C3FH4 RGB

The schematic is now in my repo - I've reorganised things, as I plan to have a play with some other coding environments as well. I enabled discussions on GitHub in case anyone wants to chat about the board there, but I'll be here and on Slack as well. Thanks having a access to a schematic always ma...
by OutoftheBOTS_
Fri Feb 18, 2022 8:55 am
Forum: MicroPython pyboard
Topic: Pin ID on pyboard
Replies: 16
Views: 6804

Re: Pin ID on pyboard

Although we call then timers whats a timer really is is a hardware counter. It can count up or down and it will count 1 step every time the input clock ticks. These timers can have input clocks in the MHz. How the timer can be used to count encoders is that 2 encoder pins go through some logic circ...