I am building a 6 degree of freedom robot arm.
...
The list of functions would include:
acceleration/decceleration
station keeping (the elbow lowers when the shoulder is rising and needs to be compensated for)
home/park (find home safely on power up / alternate safe position)
hi speed / low speed
I have a variety of pics and the easy pic 4 with basic and c.
...
The arm controller would connect to a PC serial/printer/ethernet port doesnt matter really.
The controlling software will be vbasic.
No it is not trivial, I have a lot of sweat invested already.
The suggested 18f4331 looks like a pretty good choice?
The ramp could be a simple curve (the longer the input pulse length the more rpms and then a coast down, just to dampen the jerkies).
'Chip model
#chip 18f4431,20
#config WDTEN=Off
#define Led PortA.0
dir PortA.0 out
Main:
Set Led On
wait 1 s
Set Led Off
wait 1 s
Goto Main
'Chip model
#chip 18f4431,20
#config WDTEN=Off, MCLRE=On
'Setup 4 bit LCD
#define LCD_IO 4
#define LCD_DB4 PORTB.0
#define LCD_DB5 PORTB.1
#define LCD_DB6 PORTB.2
#define LCD_DB7 PORTB.3
#define LCD_RS PORTB.4
#define LCD_RW PORTB.5
#define LCD_Enable PORTB.6
dir PortA.1 in
Main:
cls
LCDWord ReadAD10(AN1)
wait 50 10ms
Goto Main
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?