Show Posts
Pages: [1] 2 3 ... 18
1  Using Arduino / Project Guidance / hollow turning mechanism? on: April 13, 2014, 11:53:49 am
hello, i don't really know what to name this topic, so let me explain what i mean.

I'm going to build a device that turns essentially but its rather heavy. I'm going to use a stepper motor as the turning device. using this to couple to the other end

http://www.ebay.co.uk/itm/Kinds-6-6-35-8-10-12mm-Flexible-Shaft-Coupling-CNC-Stepper-Motor-Coupler-D25L30-/320946242968?pt=UK_BOI_Electrical_Components_Supplies_ET&var=&hash=item4ab9e30598

so essentially there are two rotating bits, one end is with the motor, the other is where the coupling is
   

 Motor  (joint)  coupling device
======== x =============

as you can imagine, it would add a lot of pressure on the stepper if i just connected the two ends like that. so, what i plan to do, is to use something like a turn table concept

http://www.ebay.co.uk/itm/Turntable-Metal-Small-3-Item-lazy-susan-hardware-300lb-cap-/191021018633?pt=LH_DefaultDomain_0&hash=item2c79bd6e09

or

http://www.ebay.co.uk/itm/24-600MM-LAZY-SUSAN-ROTATING-ALUMINIUM-TURNTABLE-BEARING-SWIVEL-SERVING-DISH-/141246963123?pt=UK_HG_Crockery_RL&hash=item20e2f99db3

is there anything more suitable for the job? there might be other things that i have never heard of, any advice would be great!
thanks!!

2  Using Arduino / Project Guidance / Re: graph plotting with arduino on: February 14, 2014, 07:30:10 pm
hi! that sounds like a great idea! but does it support real time plotting?

cheers!
3  Using Arduino / Project Guidance / graph plotting with arduino on: February 14, 2014, 06:21:23 pm
hello everyone! does anyone know how to plot a graph with Arduino output? i have read tutorials about plotting using processing and the analog output of the Arduino.

I want to plot a polar graph using the magnitude of an ultrasonic sensor against the angle of a servo.

Code:
    #include <NewPing.h>
   
    #define TRIGGER_PIN  12 // Arduino pin tied to trigger pin on the ultrasonic sensor.
    #define ECHO_PIN     11  // Arduino pin tied to echo pin on the ultrasonic sensor.
    #define MAX_DISTANCE 200 // Maximum distance we want to ping for (in centimeters). Maximum sensor distance is rated at 400-500cm.
    String readString;
    #include <Servo.h>
    Servo myservo;  // create servo object to control a servo
   
   
    NewPing sonar(TRIGGER_PIN, ECHO_PIN, MAX_DISTANCE); // NewPing setup of pins and maximum distance.
   
    void setup() {
      Serial.begin(9600); // Open serial monitor at 115200 baud to see ping results.
      myservo.writeMicroseconds(1500); //set initial servo position if desired
      myservo.attach(7);  //the pin for the servo control
      Serial.println("Input angle in Serial");
    }
   
    void loop() {
   
      while (Serial.available()) {
        char c = Serial.read();  //gets one byte from serial buffer
        readString += c; //makes the string readString
        delay(2);  //slow looping to allow buffer to fill with next character
      }
   
   
      if (readString.length() >0) {
        Serial.println(readString);  //so you can see the captured string
        int n = readString.toInt();  //convert readString into a number
   
        // auto select appropriate value, copied from someone elses code.
        if(n >= 500)
        {
          Serial.print("writing Microseconds: ");
          Serial.println(n);
          myservo.writeMicroseconds(n);
        }
        else
        {   
          Serial.print("writing Angle: ");
          Serial.println(n);
          myservo.write(n);
        }
   
        readString=""; //empty for next input
      }
   
      delay(500);                      // Wait 50ms between pings (about 20 pings/sec). 29ms should be the shortest delay between pings.
      unsigned int uS = sonar.ping(); // Send ping, get ping time in microseconds (uS).
      Serial.print("Ping: ");
      Serial.print(uS / US_ROUNDTRIP_CM); // Convert ping time to distance and print result (0 = outside set distance range, no ping echo)
      Serial.println("cm");
     
      if((uS / US_ROUNDTRIP_CM)<=5 && (uS / US_ROUNDTRIP_CM)!=0  )
      Serial.print("Too Close");
    }

the outputs are
magnitude = (uS / US_ROUNDTRIP_CM)!=0  )
Angle = Servo Angle

any suggestions will be great =) thanks!
4  Using Arduino / Project Guidance / PS1 controller to arduino on: February 09, 2014, 01:25:49 pm
hi, i saw on the arduino playground that it is possible to connect a ps1 controller to the arduino. however i can't figure out the pin out as every board seem to have different colours...

http://playground.arduino.cc/Main/PSXLibrary
i only have the body and PCB of the controller and not the connector, so i can't figure out the colour code. mine is as bellow from right to left.


YELLOW, BLUE, ORANGE, BROWN, GREEN, RED, PURPLE, BLACK.

if anyone has any experience or can tell me what the colours represent, that would be great!

cheers
5  Using Arduino / General Electronics / suitable power supply on: February 03, 2014, 03:55:37 pm
hi guys, im trying to build a robot and i am looking for a decent power supply for the arduino aas well as the l293n H bridge which requires roughly 9v power supply. i found this on ebay and was wondering will it work

http://www.ebay.co.uk/itm/2x-9-6v-Rechargeable-Battery-Pack-1000mah-w-Tamiya-Connector-/310812250453?pt=UK_ToysGames_RadioControlled_JN&hash=item485dda9155

can i plug it straight into the arduino or will i require some sort of converter for it? im afraid it might fry the arduino....Question, will a 4A current fry an arduino?

thanks!
6  Community / Bar Sport / Re: New year wishes... 2014 on: January 03, 2014, 11:22:31 am
Quote
You get big monsoons/typhoons in Malaysia (similar to hurricanes here)?  Don't have to shovel rain, but sure can be a lot of water.
haha i forgot to update my location, I'm currently studying in the UK. 
7  Community / Bar Sport / Re: New year wishes... 2014 on: January 01, 2014, 08:19:59 am
Happy new year guys!! unlike boston, it seldom snow here smiley-cry any new year resolutions ?
8  General Category / General Discussion / Any used Arduino products for sale? on: January 01, 2014, 08:17:05 am
hey guys! any one have any old or unused arduino boards/ shields thats unwanted? I'm actually looking for a few shields but before buying a new one, maybe someone wants to sell their unused ones?

thanks!
9  Using Arduino / Networking, Protocols, and Devices / Re: arduino twitter Help on: December 11, 2013, 04:47:39 am
Hi yes I is, I used it recently
10  Using Arduino / Networking, Protocols, and Devices / Re: arduino twitter Help on: December 10, 2013, 07:52:15 pm
Anyone?
11  Using Arduino / Installation & Troubleshooting / Re: led blink on: December 08, 2013, 06:50:39 pm
your Mega blinks continuously because by default, it contains the blink sketch. What OS are you using? if it is a windows, probably you have to install drivers, if it is a mac, select the right port. Another possible reason which i come to learn is that try and use a different cable, it helps. cheers
12  Using Arduino / Installation & Troubleshooting / Re: arduino IDE path mac on: December 08, 2013, 06:47:58 pm
Its alright, solved the problem, i have to include arduino.app at the end =)
13  Development / Other Software Development / Re: Arduino on Xcode Project — Official Thread on: December 08, 2013, 06:22:48 pm
hi again, why doesn't embedxcode show an error directly? for example if i forgot to put a ' ; ' , the compiler won't notify me unless i build. is this feature available for embedxcode?
14  Development / Other Software Development / Re: CodeBlocks Arduino IDE - real C++ IDE for Arduino development (rev.20130827) on: December 08, 2013, 05:55:05 pm
Hi! is there a code block arduino version for mac? i can't seem to find it on the webpage
thanks
15  Using Arduino / Networking, Protocols, and Devices / arduino twitter Help on: December 08, 2013, 04:53:40 pm
Hello, im experimenting on using the Serial monitor to upload strings on twitter,  i have written a code that fetches user input string but some reason, it doesn't work, code compiles fine..need some help to debug!

Code:
#include <SPI.h>
#include <Ethernet.h>
#include <Twitter.h>

boolean MsgSent = false;
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = {192, 168, 2, 50 };
Twitter twitter("XXXXX");

EthernetClient client;

char msg[140];
int delayS = 10;

void softReset() {
  asm volatile ("jmp 0");
}

void setup() {
   
  Serial.begin(9600);   
  if (Ethernet.begin(mac) == 0)
{
    Serial.println("Failed to configure Ethernet using DHCP"); 
    while(true); 
  }

 Serial.println("type in what you wanna tweet");
 
}

void loop() {
char tweet;
int i =0;
tweet = Serial.read() ;
  if(Serial.available() > 0) {
    snprintf(msg, 140, "%c" , tweet);
    i++;
    Serial.println("Delaying ...");
    for(int i = 0; i < delayS; i++) {
      delay(1000);
      Serial.print(i);
      Serial.print(" ");
    }
    Serial.println();
    Serial.println("connecting ...");
    if (twitter.post(msg)) {

      int status = twitter.wait(&Serial);
      if (status == 200) {
        Serial.println("OK.");
      }
      else {
        Serial.print("failed : code ");
        Serial.println(status);
        Serial.print("\n");
      }
      softReset();
    }
  }


}


Cheers!!
Pages: [1] 2 3 ... 18