projects:sand_drawing:work_logs:software
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
projects:sand_drawing:work_logs:software [2020/04/23 22:42] – tjhowse | projects:sand_drawing:work_logs:software [2020/04/23 22:54] (current) – tjhowse | ||
---|---|---|---|
Line 30: | Line 30: | ||
My plan is to have two modes of operation: 1) Accurate slow, 2) Less accurate, fast. You'll be able to switch between modes in gcode. The accurate mode will have the waveform generation purely in software, and will track each pulse. The less accurate mode will use the PWM interface and measure the time it takes to move. If I use timer interrupts I should be able to say "move at 270 degrees per second and stop the movement after 1 second" | My plan is to have two modes of operation: 1) Accurate slow, 2) Less accurate, fast. You'll be able to switch between modes in gcode. The accurate mode will have the waveform generation purely in software, and will track each pulse. The less accurate mode will use the PWM interface and measure the time it takes to move. If I use timer interrupts I should be able to say "move at 270 degrees per second and stop the movement after 1 second" | ||
+ | |||
+ | I could start motion with a PWM setting, then set a hardware interrupt timer for the duration of the move. During movement my main loop could update the index based on the time since the last update and the rate of movement. | ||
projects/sand_drawing/work_logs/software.1587681763.txt.gz · Last modified: 2020/04/23 22:42 by tjhowse