Open faceless105 opened 7 years ago
Hi Faceless, have you made any progress in getting the servo working? I'm just building a version of the EggDuino and have a similar problem, that I cannot move the Servo, e.g. by sending TP. But the Servo is "under fire", means, that it is triggert by the software to hold its position and if I manually move the servo and switch on the board again it runs to a defined position. The board itself reacts as expected, responding the version if i send "V" or move a motor if I send SM,2000,1,200. I tried it with a motorshield as well as directly connected to the arduino - and I also tried different arduinos (An original UNO, a China-UNO and a Leonardo). It is no problem to move the servo with a small test-sketch. I'm asking myself if there is a different servo.h which should be used or something like this.... Greetz Mic
Had a similar turned out the problem was I had both pen (lower and raise) settings in the eggbot extension of inkscape set to 70%, once I changed the settings (experimental) to 0% and 100 % the servo moved the whole way. Retrospectivley I now understand why nothing moved because it moved vom 70 to 70 percent ;)
I've been having an issue getting the servo to respond. So far, I just haven't been able to get any movement out of it unless I upload different arduino code to test with, and I'm hoping you might be able to offer some insight.
I'm using this shield. I had initially been using it on A), but I thought that might have been getting a conflict. So I changed it to D10, but I haven't been able to get a successful move out of it.
This leads me to think that something in my settings must be off. When I have the eggduino firmware, should SP,1 or 0 move the servo? Same with TP? I know when I type them into the terminal, I get an OK, or the pen position (always 1).
If those commands should work, then maybe I have other settings that are off... It doesn't look like it, but in the EggDuino file, I see these variables....
// Variables... be careful, by messing around here, everything has a reason and crossrelations... int penMin=0; int penMax=0; int penUpPos=5; //can be overwritten from EBB-Command SC int penDownPos=20; //can be overwritten from EBB-Command SC
Should I start experimenting with them? If I should, do you have any advice on how much or little I should be adjusting them?
I've done very very little work with servos in the past, but have been able to get some working tests with separate code. So I'm not too sure what's causing the issues with this code yet. Like I said, any advice you can give me, I would hugely appreciate it.