I am having problems verifying the sketch on Arduino mega. It saying no such file globals.h file. I am struggling to install the libaries on the apple mac. I have no problem installing zip libaries. Any suggestions would be welcomed
Thank you
I seldom use the original Arduino IDE these days, but I noticed the same problem.
Copying those files from the libraries folder to the stepper_motor_controller and remove the ../ from all the include lines on row ~40-50 is one way.
I recently added a platformio.ini to my repo as this simplifies the build a lot imho. The point being that it is much more reproducible than the Arduino environment, ofc a bit more to get used to if new to VSCode and PlatformIO.
Hi there
I am trying to compile the sketch to a mega board but get the error message (no “setup” or “void”).
As far as I know all Arduino sketches require a Void setup and a Void loop for them to run.
Would apprciate your thoughts on this.
Hi Peter,
what is “the sketch” in this case ? I do use the Arduino IDE every now and then, I know that at least the type of board set should be the right one, can you share some error message output, preferred no screenshot from telephone
Hi there could some one please direct me to the arduino sketch to control the stepper motors to use with Arduino CNC controller as per this article
many thanks
Peter (G4GRK)
If I understand your question correctly… The one I’m using is a slightly modified version of satnogs-rotator-firmware.
You need to change the rotator_pins.h to match the board you’re using.
For the Uno CNC shield (should also work on the Nano iirc).
Hi Daniel
Thanks for that it helped but still having a problem in trying to get motors to move.
Have attached the responce when trying to move stepper motors.
I haven’t tried it so much against hamlib, it might give up if commands are sent during the homing, in the satnogs version it is blocking while that task is completing.
For the GS232 and Easycomm it’s quite a simple task to issue the commands directly to the controller via some terminal. I use putty in win and minicom in linux. Make sure to set the correct baud, 19200 default for Easycomm.
This Easycomm implementation accepts separate az/el commands or combined. AZ45 or EL45 moves the axes separately, and can be commanded while the other is moving. AZ45 EL45 sets both at the same time.
Query the position with AZ EL and immediate stop with SA SE. GS gives status, GE for error register.
Hi just need a bit of advice sent this comand to arduino +cnc shield but motor dose not move.
is this the correct responce
many thanks
Peter(G4GRK)rotctl, Hamlib 3.2
Report bugs to hamlib-developer@lists.sourceforge.net
rot_init called
initrots3_easycomm called
rot_register (201)
rot_register (202)
rot_register (204)
rot_open called
serial_open called
serial_setup called
Opened rot model 202, ‘EasycommII’
rig_strstatus called
Backend version: 0.4, Status: Beta
Good morning all
Looking for some help with arduino + cnc build.
Have built all the engineering bits and loaded software.
On start up its goes through homing sequence and sets both az and el.
When I send rotcl command the pc displays the position sent but the stepper motors do not move.
The fact that it performs homing sequence with no problem makes me think the hardware is working correctly.
Any suggestions ?
I have been building one lately and it works fine. what is your command line for the rotctld ?
Have you tried running it directly to a serial terminal?
Good morning all just one question.
Have built the Ardunio cnc project homing sequnce works fine and can mamualy enter AZ & El using ROTCTL with no problems.
When I use ROTCTLD and press engae on Gpredict it shows ERROR in READ box and then Hamlib disconnects.
My question is the project has no postion device included in the project so dose Hamlib/Gpredict require a response from the arduino on its postion and if so where dose it come from