Show Posts
Pages: [1]
1  Using Arduino / Project Guidance / Bluegiga WT32 on: May 05, 2013, 03:22:17 pm
Hi,

I thought I document this and share with everyone now or future that may be looking for a good bluetooth solution, specifically AD2P. I have tried all the WT32 breakout boards out there and none work well except one made by http://BETZtechnik.ca No, I don't work for them and in no way connected with them besides the fact a happy customer.
2  Using Arduino / Motors, Mechanics, and Power / Re: Non-blocking DC Motor? on: March 28, 2013, 06:09:34 pm
thak you thank. I am rather embarrassed to have overlooked. Thanks again.
3  Using Arduino / Motors, Mechanics, and Power / Non-blocking DC Motor? on: March 27, 2013, 10:21:06 pm
Please advice on a good/accurate way to implement non-blocking DC motor driver? I am using SN754410NE. Thank you in advance for the help/pointers.

Code:
int motor_1[] = {6,7}; // motor

void setup() {
  pinMode(motor_1[0], OUTPUT);
  pinMode(motor_1[1], OUTPUT);
}

void loop() {
  motorForward();
  delay(8000);  // <------------ some kind of time check
  motorStop();
 
  motorBackward();
  delay(8000); // <------------ some kind of time check
  motorStop();
}

void motorForward() {
  digitalWrite(motor_1[0], HIGH);
  digitalWrite(motor_1[1], LOW);
}

void motorBackward() {
  digitalWrite(motor_1[0], LOW);
  digitalWrite(motor_1[1], HIGH);
}

void motorStop() {
  digitalWrite(motor_1[0], LOW);
  digitalWrite(motor_1[1], LOW);
}
4  Using Arduino / Motors, Mechanics, and Power / Re: Unipolar Stepper HELP!! on: March 27, 2013, 10:10:14 pm
Thanks for the response. I used AccelStepper and it worked flawlessly.
5  Using Arduino / Motors, Mechanics, and Power / Unipolar Stepper HELP!! on: March 27, 2013, 08:23:09 am
Hi All,

I've got a geared unipolar (2 phase) with the published spec listed below. I am seeking guidance on how to go about driving it. I am using ULN2803. Should I be driving it at 60rpm with 200 steps per revolution (given 200pps) and just calculate the revolutions. The Stepper.h on UNO doesn't like 7200 steps nor 1.67rpm as speed. Thank you.

86 ohm
Step Angle: 15 degree
Gear Ratio: 300
Motion Speed: 1.67rpm (@200pps)
Torque: 150Ncm(@200pps)
6  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: March 03, 2013, 07:05:49 pm
perhaps the while loop at the very end of loop method? I sometimes overlook the simplest things and over complicate them (life of a code monkey!!!)
7  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: February 25, 2013, 10:00:14 pm
Success!!! AdderD & Palliser thank you both again the priceless HINTS. After an hour of tweaking the code this evening I was able to tap into both the internal and OBD2 bus, the data flowed through into the serial monitor as if a flood gate was opened. Sorry TI for doubting the 3.3V compatibility to 5V (after the disappointment last night I ordered 10pcs of TJA1055/c thinking 3.3V is not what TI claimed to be). Next stop, double back to the consumer mode, set the ACK bit and make DUE as a node on the bus. It's exciting. Again without the inputs from both of you I would still be going in circles. The IRQ worked like charm, it's better than having to loop and loop to get the serial stream from CAN232 and miss 5-10% of the frames. I am SOLD!!!
8  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: February 25, 2013, 01:58:51 am
Thank you Palliser and AddeD for the pointer and insight. I think I am truely confuse with the way this is set up. What I am going after at the moment is to just listen/spy on the bus for the traffic. Whether it be OBD2 or vehicle's internal bus I have been able to plug into it via an OBD2 shield in conjunction with UNO or simply a CAN232 without participating as a node and see data flow through. Yes, I am aware of how OBD2 work smiley on top of the request and respond the power train CAN in my vehicle contains hundreds of frames per seconds of other propriatary information aside from RPM, speed, temperature, etc. Again, thanks Palliaer I'll give it shot. The OBD2 is at 500 and I had tried them all. Here is another question, how come 100K isn't part of the constants list? Thanks,
9  Products / Arduino Due / Re: [OBD2 ?] Building a CAN API for Arduino DUE on: February 24, 2013, 09:00:22 pm
Has anyone gotten this to work with OBD2? I isolated the consumer and producer from the interrupt example and loaded onto 2 DUE and was able to get consume message from the producer. Then tried hooking up the consumer to the OBD2 and nothing. I haven't tried debug through the code just thought I ask. Thanks.
10  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: February 20, 2013, 11:55:03 pm
Thanks again Palliser. After exhausting all possibilities and redid the circuit multiple times I finally figured out the work around. I am suspecting it has something to do with the Serial Monitor on Mac. I inserted a line (cannot be a blank line) right before the while loop and both examples worked.

void loop()
{
  Serial.println("-----");
  while (Serial.available() > 0) {
     CAN_MSG_1 = Serial.parseInt();
      if (Serial.read() == '\n') {     
      Serial.print("Sent value= ");
      Serial.println(CAN_MSG_1);
      //delay(1000);
    }
  }
....................
11  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: February 18, 2013, 10:45:08 pm
Thanks again for providing the sample sketches I have tried both and either worked. By any chance you could please provide the wiring diagrams? I doubt you can make anything out of the pile of spaghetti but please post the diagram. Thank you smiley
Pages: [1]