Loading...
  Show Posts
Pages: [1] 2
1  Using Arduino / Project Guidance / Re: Linear Actuator, Servo, ESC, Leonardo on: April 14, 2013, 06:27:02 am
Want a simple way of adjusting actuator stroke... just add a motor run time,, eg if runs for 5 seconds will be 75% of stroke .

PS an easy way to control the actuator is with two relays , one to swap polarity over ( move in or out) the other to turn the power on/off to the actuator.

PS.... a little tip,, to make the actuator stop quicker, when you turn the power off , short out the actuator terminals , this acts like a break..

all the best
2  Using Arduino / Project Guidance / freetronics lcd + ds3232 rtc on: April 14, 2013, 06:15:05 am
hello all, I have looked for a sample of code  using the freetronics lcd ( button for a menu type) for clock setting (rtc ds3232), but can not find any ..

can any one point me in the direction ? I should be heading , I have the RTC working, and reading/ setting via serial monitor, but would like to have the clock on the lcd, and adjust via the buttons... Any hints

Thanks...in advance
3  Using Arduino / Programming Questions / Re: Connect Arduino with Bluetooth JY-MCU and Andoid on: December 28, 2012, 05:04:15 am
Hello , I am using my nextus 7 tablet and both blueterm and bluetooth spp both work. I have included my sw below that will show what you send on a lcd so you can see what you do send ....

Code:
Quote


#include <SoftwareSerial.h>

#include <LiquidCrystal.h>

LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

SoftwareSerial mySerial(3, 2); // RX, TX
#define text
#define text=myserial

void setup() 
{
  
   // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);//added
 // Open serial communications and wait for port to open:
  Serial.begin(115200);
   while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }

  mySerial.begin(115200);
  mySerial.println("test comms");
  delay(500);
}

void loop()
{

  if (Serial.available())
  delay(100);
    mySerial.write(Serial.read());
    delay(500);
    lcd.clear();
     if (mySerial.available())
    lcd.write(mySerial.read());
       }
  



4  Using Arduino / Programming Questions / Re: how to get lcd to show soft serial received text ? on: December 28, 2012, 05:00:05 am
Thanks Karma,,,, I needed to add a delay also so could see the display..
Cheers.
5  Using Arduino / Programming Questions / how to get lcd to show soft serial received text ? on: December 27, 2012, 07:36:43 am
Hello All ,programming is not my strength ( electronics is)... I would like to display what i have coming out of my soft serial port so i can see on the lcd... I have been able to type into serial monitor and shows on lcd, but how to show what is coming out of soft serial seems to avoid me...

I want to make a small device that i can send a command ( text or number to my Bluetooth on the uno and be able to check what it receives on the lcd, works ok at present i can monitor on the serial monitor , just want to add lcd so was portable.... My code below ( I bet it is something very easy I am just missing) ?

Code:
Quote


#include <SoftwareSerial.h>

#include <LiquidCrystal.h>

LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

SoftwareSerial mySerial(3, 2); // RX, TX
#define text
#define text=myserial

void setup() 
{

  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);//added
  // Open serial communications and wait for port to open:
  Serial.begin(115200);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }

  mySerial.begin(115200);
  mySerial.println("test comms");
}

void loop()
{
  if (mySerial.available())
    Serial.write(mySerial.read());
  if (Serial.available())
    mySerial.write(Serial.read());
  delay(100);
  lcd.clear();
  lcd.print("need to see what bluetooth received ");// this is where i would like to send soft serial so i can see it on the lcd ???
}


6  Using Arduino / Programming Questions / Re: Connect Arduino with Bluetooth JY-MCU and Andoid on: December 27, 2012, 07:05:17 am
Hello.

I am doing some thing like this, I have been able to send comms to the blue tooth and monitor via the serial monitor. I use the Blue term in google apps (free).

I am using soft serial for another serial port to Rx / Tx  for the blue tooth unit.. as I am using the original hw version to monitor the comms on the pc.

you can use the  soft serial example included in the library.

WARNING..... the unit you wish to purchase only runs of 3.3v....check the max voltage for your tx/rx pins..as most that run off 3.3 will only take 3.3v serial signals, any higher will damage them..( uno will put out 5V).

7  Topics / Home Automation and Networked Objects / bluetooth to xbee on one uno ? ? ? on: November 17, 2012, 07:42:35 pm
hello all... this may be a strange question and may be simple to answer... just call me a new be.
May question is can you have a bluetooth modual talking to your phone and an xbee then talking to somthing else..

I am thinking of talking to the bluetooth modual to turn someting of... intern the bluetooth modual send a code to the xbee wich then talks to another xbee and turn the thing of, and then send a return code yes i am off.

can it be done as should be able but the serial comms may be a problem.. any suguestions ?
 smiley-mr-green




8  Using Arduino / General Electronics / w5100 ethernet shield & Arduino Duemilanove 2009 not used pins on: January 02, 2012, 05:00:34 pm
Hello all,

I can not seem to find a post that will give me what pins are free to be used when i use a w5100 ethernet shield & Arduino Duemilanove 2009 shield together

any one have a spreadsheet or a direction to point me.



9  Using Arduino / Programming Questions / Re: invalid suffix "D" on integer constant on: December 06, 2011, 04:37:02 am
I would think it is something to to with this line...

Code:
byte mac[] = { 1A-2B-3C-4D-5E-6F };

The reference page for the ethernet begin() call shows this...

Code:
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
 

   Thank you, as well al know the problem can be looking you right in the face sometimes. that you for your assistance.
10  Using Arduino / Programming Questions / invalid suffix "D" on integer constant on: December 05, 2011, 06:34:07 am
Hello All , have this problem, sw compiles then at the end shows this error ?

Any Had this before ?

This was written for ver 0022 , just upgrade client to ethernet client same with server.

tried running this in ver 0022 still same "D" Problem ?

Help still learning.

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

byte mac[] = { 1A-2B-3C-4D-5E-6F };
byte ip[] = { 10 ,1 ,1 ,9 };
byte gateway[] = { 198 ,168 ,1 ,1 };
byte subnet[] = { 255 ,255 ,255 ,0 };
EthernetServer server(80);

String readString = String(30);
 

void setup(){
Ethernet.begin(mac, ip, gateway, subnet);
delay(1000);
pinMode(5, OUTPUT);
digitalWrite(5, LOW);
Serial.begin(9600);


void loop(){
EthernetClient client = server.available();
if (client) {
while (client.connected()) {
if (client.available()) {
char c = client.read();
if (readString.length() < 30)
{
readString = readString + c;
}
if (c == '\n') {
Serial.print(readString);
client.println("HTTP/1.1 200 OK");
client.println("Content-Type: text/html");
client.println();


if(readString.startsWith("GET /?out=5&status=1"))
{Serial.print("\n 5 HIGH LOW \n");
digitalWrite(5, HIGH);
delay(100);
digitalWrite(5, LOW);
client.print("{\"status\" : \"1\" , \"out\" : \"");
client.print(5);
client.print("\"}");
}


if(readString.startsWith("GET /?out=all"))
{
Serial.print("\n OUT ALL\n");
client.print("{\"ip\" : \"10.1.1.9\", ");
client.print("\"devices\" : ");
client.print("[{ \"type\" : \"door\", \"name\" : \"OPENING ROOF\", \"out\" : \"");
client.print("5");
client.print("\"}");
client.print("]}");
}
readString="";
client.stop();
}
}
}
}
}



11  Using Arduino / Programming Questions / Re: using TABS in IDE on: September 07, 2011, 06:41:58 am
thanks for the info, now i understand, thanks again
12  Using Arduino / Programming Questions / Re: using TABS in IDE on: September 07, 2011, 06:16:26 am
Ok then if  for example i have a basic sketch, on main tab that when i press a button moves a motor.

Then could i make the sketch for my next step in the program that counts how long the motor ran for in another tab.  so i could break the whole sketch into peices ?

13  Using Arduino / Project Guidance / Re: Linear Stepper motor slider mechanism or ?? on: September 06, 2011, 03:38:29 am
Hello Jim, I sell linear actuators as part of my job , that speed you require is very fast, and you will have a hard time finding anything , you would have to go to a big linear actuator. even then they have a 10% duty cycle, this means you can run it for 10 minutes and then needs a 1 minute rest to cool down.
14  Using Arduino / Programming Questions / using TABS in IDE on: September 06, 2011, 03:16:03 am
Sorry all, but still learning,

Has any one have an example sketch that show how to use tabs to make programming easy ?

The arduino Reference is a bit confusing, so if any one has a basic sketch that shows this it would be great or a link to one.

THX for any suguestions.
15  Using Arduino / Programming Questions / Re: disable a button input unitll another pressed on: August 23, 2011, 07:45:12 am
1) using eeprom, i have not used before, it is the start of my calibration program, which the plan is to
 .
a) mover motor in reverse till no pulse detected.
b) reset couneter
c) move forward till no pulses detected.
d) store max pulses in memory.
e) then return to start position (where counter was reset)

 i will add a pot so if pot was at 50% the motor would only move 50%.
Pages: [1] 2