Show Posts
Pages: [1]
1  Using Arduino / Installation & Troubleshooting / Re: Firmata confusing pins on: March 21, 2013, 02:11:35 pm
I just test my pins 10 and 11 on a solenoid using this sketch

void setup() {               
  pinMode(8, OUTPUT);     
  pinMode(9, OUTPUT);
  digitalWrite(8, LOW);
  digitalWrite(9, LOW);

void loop() {
  digitalWrite(9, HIGH);
  digitalWrite(9, LOW);

And the pin won't even work for that. This code works for any other pin however. Maybe it is broken ?
2  Using Arduino / Installation & Troubleshooting / Firmata confusing pins on: March 21, 2013, 02:01:33 pm

I am using firmata with maxuino. My project has been working fine until now, pin 10 and 11 will not output a HIGH or LOW. I've yet to upload a sketch directly from the Arduino software to see if the Pins work while not being controller by firmata.

Has anyone had this problem or know why my pins all of a sudden are not responding?


3  Using Arduino / Motors, Mechanics, and Power / Re: Micro Stepping without a motor Driver on: February 04, 2013, 07:07:20 am

Sorry I don't completely understand the code, I am using maxuino to control the stepper. Does microstepping relate to the regular way of power a stepper, as in powering the coils in the proper phase? This is how I understand I am powering a stepper properly A+,B+,A-,B-

Would sending PWM frequency between 2 - 8kHz in the same phase (A+,B+,A-,B-) be how I attain microstepping?

Sorry for not understanding your post, I am not very fluent in arduino code
4  Using Arduino / Motors, Mechanics, and Power / Micro Stepping without a motor Driver on: February 02, 2013, 10:14:33 am

I recently rigged up this circuit to drive a stepper:

It is working, but the I'd like a smaller degree between steps. So now I want to implement micro stepping. Which I do not know anything about despite my googling.

I want to know if the circuit I have currently set up - a dual H-bridge to control a bi-polar stepper- can implement micro stepping?

If my current circuit doesn't support microstepping is there a circuit I can set up to allow micro stepping without use of a motor driver?

If someone could explain how microstepping works in layman's terms that would be amazing too...

5  Using Arduino / Motors, Mechanics, and Power / Re: Stepper Motor Vibrating on: January 20, 2013, 12:39:59 pm
Good news guys, I got it working!

I switched my wires from the Arduino until it was sending the proper order of phase.

I think the main problem was because I am using a stepper I got from a printer and it was hard to tell if I ad the proper leads.

I changed my pins from 0,1,5,6 to 5,6,7,8 because I noticed that if I unplugged 0 and 1 the signal from 5 6 were still making the motor move, but if I removed 5 and 6 the signal from 0 and 1 were not making the motor jerk at all, just a slight ticking.

Now it is wired:

Arduino 5 to H-bridge 2, A 6 to H-B 15,A 7 to H-B 7, and A 8 to H-B 10

and the sequence is

1 0 0 0
0 0 0 1
0 1 0 0
0 0 1 0

Thanks for your help! The info about A+ B+ A - B- especially helped me understand steppers, considering before I was guessing random sequences

6  Using Arduino / Motors, Mechanics, and Power / Re: Stepper Motor Vibrating on: January 20, 2013, 12:07:33 pm
This is all really helpful so thanks.

But still I've done what both of you have suggested and no luck.

kf2qd, I've put in the steps you've suggested and I've also tried this sequence:

1 0 0 0
0 0 0 1
0 1 0 0
0 0 1 0

And in both instances what happens is the motor takes 2 steps forward and two steps back

I am going to read the voltage output from each step, but I feel I've set it up correctly so I am really confused.

I guess I should note that I am trying to make the motor work using maxuino, but I've tried using the stepper example straight from the arduino library and both results are exactly the same

7  Using Arduino / Motors, Mechanics, and Power / Stepper Motor Vibrating on: January 16, 2013, 02:24:03 pm
Hi I have set up a circuit to control a stepper motor using an H-bridge, I followed the instructions on this website. I've seen this diagram on a couple other sites so I trust it is correct. But once I try to make the Stepper rotate it just vibrates. I have no idea what I have done wrong!

Here is the motor vibrating :

Here is the Tutorial I followed:

I don't know what I've done wrong I've rearranged the wiring every which way and no matter how I arrange it the motor vibrates, if I slow it down to a snails pace the motor takes three steps forward and then on the 4th step it jumps back to where it was in step 1.

I have sent it a loop saying this:

1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1

Any help would be appreciated, thanks!
8  Using Arduino / Interfacing w/ Software on the Computer / Re: Max MSP serial communication on: October 30, 2012, 02:30:22 pm
Thanks for the link, I was checking out maxuino but I was curious how to do this without it.

The thing I don't understand is ...

1) How to properly send information to the arduino, and how to even tell if it is receiving any information from max.

2) What to write codewise for the arduino in order to distribute the information I am sending from max to the arduino. I am trying to send two numbers to the code, one to control the motor's speed and another to indicate HIGH or LOWin order to switch the direction of the motor.

What kind of code do you write to tell the arduino where to put the numbers you are sending it?

analog write controls the motor's speed so I was trying to write the code so that the first set of numbers I send from max are to control the speed.

I can type in a number from 0 to 255 and upload it to change the speed but I want to use max so I can vary the speed from the computer. My only idea was to define a variable called "thespeed" based off of the information coming from the serial port. But I don't know if the arduino is receiving any numbers from max let alone knowing what to do with them.


I found information on parsing the numbers you send in a string and I tried to use that information in my code to define the numbers the arduino is recieving but I don't know if it is close to what is the proper thing to do, I am just guessing . I did this ....

      while (Serial.available() >0) {
        int thespeed = Serial.parseInt();
        int thedirection = Serial.parseInt();
        if ( == '\n') {
          thespeed = 255 - constrain(thespeed, 0, 255);
          thedirection = 255 - constrain(thedirection, 0, 255);

Does this look close to right? I am looking into maxuino but if I could do this without it I'd really prefer to, just so I have more of a chance to understand how the arduino itself works.

9  Using Arduino / Interfacing w/ Software on the Computer / Max MSP serial communication on: October 26, 2012, 06:00:15 pm

I just started using Arduino, so I don't know much. I have managed to piece together my first sketch to control a DC motor's speed and direction. Now I want to control the motor from Max MSP.

I have no idea how to do this. I will post what I coded for Arduino but I feel it isn't close to what I should have done:

I was wondering if anyone could direct me to a tutorial with in depth description of how to control Arduino from Max MSP. All I can find online so far is how to get information from the Arduino. A lab or something to take me through the steps as I am not at level where just discussing concepts helps.

I would start slow with Arduino but I just started using it to realize a project I already had in my head.

Pages: [1]