[EDIT - PREVIOUS TITLE:] Using MR-C3024 (ATMega 128L) with the Arduino IDE (8 servos)? (Quadruped robot)
I'm completely new to the Arduino world and to robotics/hardware stuff in general.
I found a 10 year old project i built as a kid but never really programmed.
Now i would like to revive the quadruped robot and program it in C++, not in roboBASIC or similar due to the limitations and... Just not XD
The robot has 8 servos (HITECH HSR-8498HB), a 6V battery (1000mah) all attached to the board in question (MR-C3024 (ATMega 128L), 7.4MHz).
[b][color=orange]What i tried[/color][/b]
I searched online for a while until i found out that Arduino IDE (obviously) supports Arduino-like boards but it is possible to install support for non-Arduino boards.
So i searched for my board online and i found this, that sincerely i don't even know if that's the right stuff to add but i tried anyway.
Now that i think about it, maybe this supports only the ATMega 128L and does not consider all the board.
Anyway once installed following the instructions on GitHub i found myself stuck at this part: "Select what kind of programmer you're using under the Programmers menu." and then "Hit Burn Bootloader.".
In the first step, I don't really know what a Programmer is, how to choose it and why should i use one. Also reading around it seems useless if i use a USB to run the program on the board but also useful to bootload, that bring us to the next point, the second step.
With a bit of research I think the right Programmer should be "USBasp (MegaCore)", don't really know why anyway, trying to burn the bootloader the board gives this error: "avrdude: error: could not find USB device with vid=0x16c0 pid=0x5dc vendor='www.fischl.de' product='USBasp'"
Trying to Upload without burning it tried for 10 times repeatedly saying it is a Programmer problem.
I stopped here to not make things worse...
I used a 10 year old obsolete and half-working program on my old Windows PC to test battery and servos, they all work properly (hurray!).
Here is the mobo in all its glory:
General info: the robot has 8 servos (HITECH HSR-8498HB), a 6V battery (1000mah) all attached to the board in question (MR-C3024 (ATMega 128L), 7.4MHz).
I installed MegaCore to add support to the ATMega 128L via GitHub following this guide, I blindly did this since i don't really know if that's the right thing to do or not.
To connect the board to my Mac (hope it's not a problem) i use a Serial to USB adapter. Arduino IDE sees the port when i connect it (photo) (even if it is not connected to any board):
Don't know if this can help but if I try to Tools > Get Board Info a message in the lower bar shows up saying "Native serial port, can't obtain info".
[b][u][color=teal]My questions and objectives :)[/color][/u][/b]
[b]-In case I use the actual board[/b]
I worked with C++ in the past and with C and Swift it is the language i know best. I would like to use the Servo library to program this thing.
1a) How can I get this thing to work?
2a) I read that maybe a couple changes to the servo library will be necessary, is this true? (that is beyond my skillset at the moment obv)
3a) Once and if everything works, how can i assign a serial to a servo (using the servo library) if numbers on my board are completely different than Arduino ones, the Arduino IDE with the MegaCore installed is enough for it to understand what I'm talking about? (I don't even know what I'm talking about XD)
[b]-In case I switch to Arduino Uno + Servo Shield (maybe [i]PCA9685[/i]) [/b]
I especially care to program in C++ and keep things simple, I'm a begginner after all, what I see online is that if people use a shield often if not always uses an adafruit-related code, that i find a bit frightening to begin with
1b) If that's the only way of course i don't think it will be impossible but using the servo library is preferred, can I use it anyway?
2b) I have my servos, i would have to break the cable to attach them to the shield or i can keep them as they are? (pins are matching or not or maybe?)
3b) Which shield should i use? Are there different ones?
4b) Can I add other sensor to the shield? (proximity, light, camera?)
5b) Can I automate the robot or something more powerful will be necessary?
6b) What about the battery? Can i use the same one?
Thanks to everyone read this and will try to help a newbie