Show Posts
Pages: 1 ... 72 73 [74] 75 76 ... 263
1096  Using Arduino / Project Guidance / Re: Autonomous Vehicle - what components? on: January 14, 2014, 01:19:49 pm
Hell yeah, if you have budget, go for that. The intelligence part is the difficult bit, so making it easy on yourself from the building pov makes good sense to me.
1097  Topics / Robotics / Re: Code to control 4Wheels robot on: January 14, 2014, 01:11:40 pm
We got 4 motors , and we need to know how to connect them with the Arduino Uno and then how to do the code
Well you didn't say what the motors are, so I'll assume they're DCs not steppers or servos.

So have a look at these tutorials as a starting point: simple transistor or IC h-bridge.
1098  Using Arduino / Project Guidance / Re: Autonomous Vehicle - what components? on: January 14, 2014, 12:49:30 pm
Yes it would make sense to get a chassis with the motors and wheels. Some have a plastic or metal chassis with lots of holes and slots cut in, so it's easy to attach stuff with small screws and even cable-ties. The holes make it easy to pass wiring around the parts too.
1099  Using Arduino / Programming Questions / Re: hall effect tachometer problem on: January 14, 2014, 12:32:37 pm
Just as a matter of interest, and probably not germane to your problem, I read on the forum that it's better to use a falling edge with the interrupt pin pulled high. I made these changes to that code recently, when I measured the speed of a cpu fan using its third wire.

   pinMode(2, INPUT_PULLUP);
   //attachInterrupt(0, rpm_fun, RISING);
   attachInterrupt(0, rpm_fun, FALLING);
1100  Using Arduino / Project Guidance / Re: Autonomous Vehicle - what components? on: January 14, 2014, 12:26:14 pm
The L298 solutions are pretty much all that I have found so far........I also understand a 4 x AA battery to power the system isn't enough for some people :S

Check the specs for L298s- you'll see they have a voltage drop of (I speak from memory) 2V minimum, rising to 3-4 at higher currents, so if you start with 6 you don't have much left to drive the motors. But they are ok as long as you throw enough volts at them.....
1101  Using Arduino / Project Guidance / Re: Autonomous Vehicle - what components? on: January 14, 2014, 11:49:52 am
I would do this in two phases... forget the learning for now, and just have a front-looking sensor in Phase1.. Perhaps mount it on a servo so it looks from (say) 45 degrees left to 45 right or something, and then it just avoids what it sees. That could be just turn a bit, and if obstacle is still there, well Plan B is back out. Or something.  Maybe one on the back so it doesn't back out into something?- but that would be Phase 1a.

There are loads of such robots.

Yes to h-bridges to allow differential steering with forward and backwards. Look at Pololu for what they have, and there's bound to be similar stuff in UK. Steer away ( smiley-cool) from L298 solutions, they eat power and have heatsinks as big as a truck. Pololu has more cunning ones, the whole board being say 3x2 cm.

THEN think of the learning in Phase2... that's a software thing anyway, so get the hardware sorted and zoomin' around the lounge first.
1102  Using Arduino / Project Guidance / Re: What kind of sensing could I use? on: January 14, 2014, 10:19:05 am
Also, if the books aren't identical, you could maybe identify which book is taken based on it's weight.

If you had books of 300g, 200g and 100g, is 300g of books 1x 300g or (1x200g + 1x 100g).

1103  Using Arduino / General Electronics / Re: Curcit schematics on: January 14, 2014, 09:57:14 am
Could somebody please give me electrical schematics of this

If you have the Fritzing open btw, and click "Schematic" you do get it there. Not quite as nicely laid out as MarkT's, but electrically the same.
1104  Using Arduino / Programming Questions / Re: Delete EEPROM every time Arduino is turned ON on: January 14, 2014, 09:51:29 am
I think it's time to post the code....
1105  Using Arduino / General Electronics / Re: Curcit schematics on: January 14, 2014, 09:44:38 am
There's code in the link where the pic is
1106  Using Arduino / General Electronics / Re: Curcit schematics on: January 14, 2014, 09:34:43 am
detecting 1024 plus/minus 2

1107  Using Arduino / Sensors / Re: Temperature Sensors on: January 14, 2014, 09:12:11 am
Have a look at the code below, which is basically zoomkat's, to whom i am indebted. My page is publicly accessible here

The lines marked //<<<<<<<<<<<<<<<<<<<<<<<<<, put a hyperlink on the page. When you click, the href gets appended to the url. Then a bit further down, the incoming text (called readString) gets check for the incoming text, and then activates the Arduino pins accordingly.

Tip: don't have an href called just "on", since if your browser sends a GET for a favicon, the "on" in "favicon" will get found. That's why mine is "on8"

//zoomkat 4-1-12
//simple button GET
//for use with IDE 1.0
//open serial monitor to see what the arduino receives
//use the \ slash to escape the " in the html, or use ' instead of "
//address will look like when submited
//for use with W5100 based ethernet shields

//jim 7 dec with my details- ip address etc
// and added the lm35 rtc crap

#include <SPI.h>
#include <Ethernet.h>
#include <DS1302.h> //rtc henning karlsen

#define useLED

byte mac[] = {
  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; //physical mac address
byte ip[] = {
  10, 0, 0, 200}; // ip in lan
byte gateway[] = {
  10, 0, 0, 2 }; // internet access via router
byte subnet[] = {
  255, 255, 255, 0 }; //subnet mask
EthernetServer server(8085); //server port

String readString;
int ledPin = 8;  //<<<<<<<<<<<<<< new

const int chipSelect = 4;
long rawVal;
long temp;
// Init the DS1302
DS1302 rtc(2, 3, 5); //was on 2 3 4 but 4 is for sd card


void setup(){
  pinMode(ledPin, OUTPUT); //pin selected to control
  digitalWrite(ledPin, LOW);  //<<<<<<<<<<<< new

  // Set the clock to run-mode, and enable the write protection

// to be safe, disabling SD explicitly
    pinMode(4, OUTPUT);
    digitalWrite(4, HIGH);

  //start Ethernet
  Ethernet.begin(mac, ip, gateway, gateway, subnet);

  Serial.println("Server pin 8 test 1.1"); // so I can keep track of what is loaded
  Serial.print("Server is at lan ip ");
  Serial.print("Local time ");


void loop(){
  // Create a client connection
  EthernetClient client = server.available();
  if (client) {
    while (client.connected()) {
      if (client.available()) {
        char c =;

        //read char by char HTTP request
        if (readString.length() < 100) {

          //store characters to string
          readString += c;

        //if HTTP request has ended
        if (c == '\n') {

          Serial.println(readString); //print to serial monitor for debuging

            // read and calc the temp
          rawVal=analogRead(5);//Connect LM35 on Analog 5
          temp=(500 * rawVal) /1024;

          client.println("HTTP/1.1 200 OK"); //send new page
          client.println("Content-Type: text/html");
          client.println("Connection: close");  // the connection will be closed after completion of the response
          client.println("Refresh: 600");  // refresh the page automatically every 10 mins

          //client.println("<TITLE>ArduinoMation test page</TITLE>");
          //display temp in browser tab
          client.print(" ");
          //client.println("<link href=\"jimza.ico\" rel=\"icon\" type=\"image/x-icon\" />");

          client.println("<H1>Testing automation via web</H1>");

          client.println("<H3>Thanks to Arduino forum guys for help</H1>");
#ifdef useLED
            client.println("Click to <a href=\"/?on8\">turn led ON</a>"); // <<<<<<<<<<<<<<<<, hyperlink
          client.println("<br />");
            client.println("Click to <a href=\"/?off\">turn led OFF</a>"); //<<<<<<<<<<<<<<<, hyperlink
          //client.println("<br />");
          client.print("<H3>More development to follow once I learn more HTML, Javascript etc</H3>");
          client.println("<br />");
          client.print("Refreshes every 10 mins, or hit browser's refresh to update temp and time");

          client.println("<br />");
          client.println("<br />");
          client.print("Temp, degrees C ");
          client.println("<br />");

          //client.print("Day ");
          //client.println("<br />");

          client.print(" ");
          client.print(" SAST (UTC+2)");
          client.println("<br />");
          client.println("<br />");
          client.println("<br />");
         //client.println("<br />");  
          //client.print("<a href=\"\">Arduino UNO</a>");
          client.println("Arduino UNO");
          client.println("<br />");
          client.println("Ethernet shield (includes SD card slot)");
          client.println("<br />");
          client.print("LM35 analog temp sensor and DS1302 RTC with Henning Karlsen's library");
          client.println("<br />");
          client.println("<a href=\"\">Visit W3Schools</a>");
          //client.println("<a href=\"/\">Visit W3Schools</a>");

#ifdef useFAV
          //jim added this to try open favicon
          if(readString.indexOf("jimza") >=0) {
            File myFile ="jimza.ico");
            if (myFile) {
              while (myFile.available()) {


          //stopping client

#ifdef useLED
          ///////////////////// control arduino pin
          if(readString.indexOf("on8") >0)//<<<<<<<<<<<<<<<checks for on
            digitalWrite(ledPin, HIGH);    // set pin  high
            Serial.println("Led On");
          if(readString.indexOf("off") >0)//<<<<<<<<<<<<<<<<<<<<checks for off
            digitalWrite(ledPin, LOW);    // set pin 5 low
            Serial.println("Led Off");
          //clearing string for next read

EDIT.... huge electric storm here, so unplugging router, sorry! We live on top of a hill and the lightening here is quite fierce. So my site will be down....

 AAAAAANDDDDD we're back
1108  Using Arduino / Installation & Troubleshooting / Re: Arduino Uno - Problems with software in Windows 7 PRO on: January 14, 2014, 09:01:06 am
My setup is very similar, works fine. See attached....
1109  Using Arduino / Project Guidance / Re: Building a 2 WD Arduino controlled Robot. on: January 14, 2014, 08:53:33 am
I did it successfully, it's very easy with that library and a couple of the sample sketches.

I forget the sketch names, but use one to diagnose the button codes. Say the "channel +" button produces a code 123456 and "channel-+ is 456789. Then your real sketch just looks for those codes, to (say) increase or decrease the speed. Very pseudo code below.....

if code is 123456
    speed = speed + increment

if code is 456787
    speed= speed - increment
1110  Community / Bar Sport / Re: whats with the attitude on: January 14, 2014, 02:25:33 am
In hind site sight  smiley-cool, i guess this forum acts more like a 3rd party fan site forum rather then a company support forum

I'd go for:

this forum acts more like is a 3rd party fan site forum rather then a company support forum
Pages: 1 ... 72 73 [74] 75 76 ... 263