Search found 10 matches

by Koep
Wed Mar 13, 2024 4:05 pm
Forum: Custom design boards
Topic: Shrinking BluePill?
Replies: 0
Views: 1467

Shrinking BluePill?

Hello All! I am thinking about testing an idea for motor control where I'd need a pcb smaller than blue pill. Which functions/functionalities in Roger's core stop working if I omit the 32khz oscillator reset button boot pin headers ? I need: timer1 adc hardwareCAN few IO's Programming with st-link/S...
by Koep
Sun Mar 03, 2024 6:15 pm
Forum: General discussion
Topic: Properly handling timer overflow ?
Replies: 6
Views: 677

Re: Properly handling timer overflow ? - SOLVED

Hello everyone!

This indeed turned out to be this exact issue viewtopic.php?t=1080

I removed the overflow interrupts from timers 2 and 4 (ie encoder and pulse counter)
and moved the checking of overflow to the beginning of the pid loop.

All errors are now gone :D

Rgds,
Tapio
by Koep
Mon Feb 19, 2024 5:25 pm
Forum: General discussion
Topic: Properly handling timer overflow ?
Replies: 6
Views: 677

Re: Properly handling timer overflow ?

Hi and thank you for taking time to reply. Following is what I at least think I'm doing: Timer1 runs PWM in complementary mode with dead time enabled. Timer1 configured to overflow at 5560 for app. 13kHz PWM freq. Timer2 (enc) is hardware quadrature encoder connected to HEDS optical encoder (TIMER_S...
by Koep
Sun Feb 18, 2024 6:02 pm
Forum: General discussion
Topic: Properly handling timer overflow ?
Replies: 6
Views: 677

Properly handling timer overflow ?

Hi everyone! I am/have been building a small router with dc servomotors based on blue pills and cheap h-bridges, using arduino 1.8.18 and Roger's core I already have excessive hair thinning caused by head scratching trying to find the cause for infrequent movement errors. Last week I finally noticed...
by Koep
Sat Sep 09, 2023 8:33 am
Forum: General discussion
Topic: How Close is too close?
Replies: 0
Views: 9204

How Close is too close?

Hi all! I helped my friend to build a small cnc router with blue pills and IBT-2 boards as servo drives. Otherwise simple project is suffering random movement errors due to electrical noise. Attached pic shows control enclosure with cover removed. I have 3 blue pills and a pokeys board spaced app 1&...
by Koep
Sat Nov 27, 2021 3:31 pm
Forum: General discussion
Topic: Hardwaretimer encoder DMA?
Replies: 1
Views: 1963

Hardwaretimer encoder DMA?

I understand reading the user manual for F103 that DMA can be used with timers.
Am I correct in thinking that encoder over/underflow event could be handled in DMA instead of interrupt?
Or have I got this wrong?

If correct then does anybody have/know of an example?

Rgds,
Tapio
by Koep
Tue Nov 23, 2021 5:45 pm
Forum: General discussion
Topic: [ SOLVED ] Trying to add modbus to serialcommand??
Replies: 7
Views: 4681

Re: Trying to add modbus to serialcommand??

The Windows driver has always been problematic. On W7 it was acceptable, on W8.0 it was a bitch, on W8.1 it could be tamed but would often go on a tangent, and W10 with current patches is somewhat working OK. Linux just works... all the time once permissions are correctly set. This got me thinking ...
by Koep
Sat Nov 20, 2021 8:40 pm
Forum: General discussion
Topic: [ SOLVED ] Trying to add modbus to serialcommand??
Replies: 7
Views: 4681

Re: Trying to add modbus to serialcommand??

I believe Op is wishing to drive ModBus to Mach3. The interface is well documented: http://www.homanndesigns.com/pdfs/Using_Modbus_with_Mach3.pdf Yes, this is my intent. I need to get info / pin states from blue pill to Mach3 and modbus is only feasible way. If I were attempting to do this, I think...
by Koep
Thu Nov 18, 2021 5:22 pm
Forum: General discussion
Topic: [ SOLVED ] Trying to add modbus to serialcommand??
Replies: 7
Views: 4681

[ SOLVED ] Trying to add modbus to serialcommand??

Hi All! I have so far been using this https://github.com/kroimon/Arduino-SerialCommand for my comms with success. Now I need to add ModBus to my project so that I can pass messages to Mach3. I found the sketch (plain modbus)at the end of this post online. It reads the message from Mach and sends res...
by Koep
Tue Nov 09, 2021 4:24 pm
Forum: Let us know a bit about you and your projects
Topic: Hi from Finland
Replies: 1
Views: 1656

Hi from Finland

Hello to all. I signed up for a while back for the 2. time as the old forum closed just days after I had joined. This is my 1. post as I have so far managed to find all needed answers on forum, google or stm user manual. My main interests fall in areas of motion in real world including motor control...

Go to advanced search