Show Posts
Pages: [1] 2
1  Using Arduino / Project Guidance / Controlling multiple led displays 'remotely', arduino to arduino comms methods on: February 05, 2014, 05:49:10 pm
I'm Working on a steering wheel display for my track car. I've come to the conclusion that to provide flexibility and future expansion I want an arduino mounted to the car car doing all the hardwork (speed sensing etc) then some form of communication to an arduino on the steering wheel.  The arduino on the steering wheel takes a data packet (8bytes) and updates the displays (5Hz).  The connection can be hardwired if necessary  (could be hard wired through the slip ring from car to wheel, but I understand this could be noisy).

I have 7 buttons on the wheel that need to communicate with the master arduino, these could be hardwired but the slip ring has a limitted amount of connections, if the connection to the wheel can have a minimal number of connections then it makes a neater solution.

Curious on your thoughts for an ideal, robust protocol and hardware solution.
2  Community / Gigs and Collaborations / Re: Steering wheel speedo, electronics help required, swap for 3D print? on: January 16, 2014, 02:50:04 am
The midlands why?

It will be a few weeks to either get the hardware back  from Peter at EmbeddedAT or buy some more. Its basically the last 10% of the project that I struggled with.
I'll dig out the emails to Peter that include the chunks of code I have working individually.

Thanks
3  Community / Gigs and Collaborations / Re: Steering wheel speedo, electronics help required, swap for 3D print? on: January 15, 2014, 05:16:48 pm
Unfortunately not had much reply from Peter since I sent some hardware to play with.
Peter if your still out there and for some reason my emails have been bouncing I'd like to get in touch again.
If anyone else is interested the 3D print offer and CAD/design skills still stand.  The printer is from HP, not the greatest resolution (0,25mm layer thickness) but great that its in ABS plastic.

Thanks

Neal
4  Community / Gigs and Collaborations / Re: Steering wheel speedo, electronics help required, swap for 3D print? on: August 07, 2013, 12:34:57 pm
Hi, i've got a chap helping me out, hopefully he'll be able to help, thanks for the offer, will contact directly if I get desperate.
5  Community / Gigs and Collaborations / Re: Steering wheel speedo, electronics help required, swap for 3D print? on: July 05, 2013, 04:55:19 am
Thanks Pete, to finish my intention of finishing off my request, I've attached a schematic of what I'm trying to build.
(turns out my son arrived 2 weeks early so I have my hands full and my posts are going to be even more sparse! apologies in advance)
Neal
6  Community / Gigs and Collaborations / Re: Steering wheel speedo, electronics help required, swap for 3D print? on: June 28, 2013, 06:09:33 pm
The 3D print ive done for the steering wheel mount, could offer a similar size print, to a set design, or i could do some design work for you.

https://www.dropbox.com/sc/v02ntrdskej6nd7/BtV9hDvCM7?n=146703918
Thanks
Neal
7  Community / Gigs and Collaborations / Steering wheel speedo, electronics help required, swap for 3D print? on: June 27, 2013, 04:29:31 pm
My latest arduino project is a steering wheel mounted 4x 7 seg display, 1 starburst display and a 20LED bar graph.
I've got the hang of programming side of things, and I've had each individual feature working, but when I try to get it together and minaturised off the prototype board it all goes wrong.  I think this is down to my soldering skills, and patience/accuracy of getting each wire in the right place.  I feel a bit dirty asking someone to make this for me as I dont feel I've offered much back to the forum yet, but I'm at the end of my tether, and have a little boy due to arrive any day now, so I won't have anymore time available.  Would be perfect to get it ready for a track day I have booked end August.
I've fortunately got access to a 3D printer and I'm experienced in CAD so if I can trade skills with someone, that would be great. Alternatively, happy to cough up some cash, if thats what it takes!
Will post some pictures of my housing and a schematic of what I'm trying to achieve.
Be interested to hear if someone is interesting in helping/swapping skills.
Thanks
Neal
8  Using Arduino / Networking, Protocols, and Devices / Re: refresh html on: April 25, 2013, 04:49:56 pm
Super thanks,
I dont mind refreshing the complete page.
I've added in the refresh command but the page is continuously refreshing is that right, doesn't feel very efficient.

Would this pseudo code work;
if data attribute has changed then "send" the refresh command

Code:
    #include <SPI.h>
    #include <Ethernet.h>
     
    byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; //physical mac address
    byte ip[] = { 192, 168, 1, 108 }; // ip in lan
    byte gateway[] = { 192, 168, 1, 1 }; // internet access via router
    byte subnet[] = { 255, 255, 255, 0 }; //subnet mask
    EthernetServer server(80); //server port
     
    String readString;
   
    int data = 1;
     
    void setup(){
     
      //start Ethernet
      Ethernet.begin(mac, ip, gateway, subnet);
      server.begin();
      pinMode(7,OUTPUT);
      digitalWrite(7,HIGH);
    }
     
    void loop(){


     // Create a client connection
      EthernetClient client = server.available();
      if (client) {
        while (client.connected()) {
          if (client.available()) {
            char c = client.read();
     
            //read char by char HTTP request
            if (readString.length() < 100) {
     
              //store characters to string
              readString += c;
              //Serial.print(c);
            }
     
            //if HTTP request has ended
            if (c == '\n') {
       
              client.println("HTTP/1.1 200 OK"); //send new page
              client.println("Content-Type: text/html");
              client.println();
              client.println("<HTML>");
              client.println("<HEAD>");
              client.println("<meta name='apple-mobile-web-app-capable' content='yes' />");
              client.println("<meta name='apple-mobile-web-app-status-bar-style' content='blue-translucent' />");
              client.println("<link rel='stylesheet' type='text/css' href='http://homepage.ntlworld.com/nealcarter/a.css' />");
              client.println("<TITLE>Neal's Home Automation Test</TITLE>");
              client.println("</HEAD>");
              client.println("<BODY>");
              client.println("<H1>Home Automation</H1>");
              client.println("<hr />");
              client.println("<br />");
              if (data == 0) {
              client.println("<a href=\"/?F1on\"\">On 1</a>");
              client.println("<a href=\"/?F1off\"\">--</a><br /><br /><br /><br />");                     
              }
              if (data == 1) {
              client.println("<a href=\"/?F1on\"\">--</a>");
              client.println("<a href=\"/?F1off\"\">Off 1</a><br /><br /><br /><br />");                     
              }
              client.println(data);
              client.println("</BODY>");
              client.println("<meta http-equiv=refresh content=1;URL='//192.168.1.108/'>");
              client.println("</HTML>");
     
              delay(1);
              //stopping client
              client.stop();
         
              if(readString.indexOf("?F1on") >0)
              {
                digitalWrite(7,LOW);
                data = 1;
                 }
             
              if(readString.indexOf("?F1off") >0)
              {
               digitalWrite(7,HIGH);
               data = 0;
                 }
                 
              readString="";

     
            }
          }
        }
      }

    }
9  Using Arduino / Networking, Protocols, and Devices / refresh html on: April 25, 2013, 03:59:17 pm
I'm trying to toggle the state of a circuit with arduino html page firing a relay, the circuit has another 2 way switch which can change the state of the circuit.  I want my html page to recognise the state of the circuit. I'm simulating this with a toggle to an attribute.  The thing is i have to hit F5 to resfresh the html and make the page show the new state of the circuit.

I must admit I've borrowed the code below but used it a few times and thought i understood it, maybe not!

I could be asking for a simple 'refresh' function? or is the structure of my code wrong?

Many thanks

Code:

    #include <SPI.h>
    #include <Ethernet.h>
     
    byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; //physical mac address
    byte ip[] = { 192, 168, 1, 108 }; // ip in lan
    byte gateway[] = { 192, 168, 1, 1 }; // internet access via router
    byte subnet[] = { 255, 255, 255, 0 }; //subnet mask
    EthernetServer server(80); //server port
     
    String readString;
   
    int data = 1;
     
    void setup(){
     
      //start Ethernet
      Ethernet.begin(mac, ip, gateway, subnet);
      server.begin();
      pinMode(7,OUTPUT);
      digitalWrite(7,HIGH);
    }
     
    void loop(){


     // Create a client connection
      EthernetClient client = server.available();
      if (client) {
        while (client.connected()) {
          if (client.available()) {
            char c = client.read();
     
            //read char by char HTTP request
            if (readString.length() < 100) {
     
              //store characters to string
              readString += c;
              //Serial.print(c);
            }
     
            //if HTTP request has ended
            if (c == '\n') {
       
              client.println("HTTP/1.1 200 OK"); //send new page
              client.println("Content-Type: text/html");
              client.println();
              client.println("<HTML>");
              client.println("<HEAD>");
              client.println("<meta name='apple-mobile-web-app-capable' content='yes' />");
              client.println("<meta name='apple-mobile-web-app-status-bar-style' content='blue-translucent' />");
              client.println("<link rel='stylesheet' type='text/css' href='http://homepage.ntlworld.com/nealcarter/a.css' />");
              client.println("<TITLE>Neal's Home Automation Test</TITLE>");
              client.println("</HEAD>");
              client.println("<BODY>");
              client.println("<H1>Home Automation</H1>");
              client.println("<hr />");
              client.println("<br />");
              if (data == 0) {
              client.println("<a href=\"/?F1on\"\">On 1</a>");
              client.println("<a href=\"/?F1off\"\">--</a><br /><br /><br /><br />");                     
              }
              if (data == 1) {
              client.println("<a href=\"/?F1on\"\">--</a>");
              client.println("<a href=\"/?F1off\"\">Off 1</a><br /><br /><br /><br />");                     
              }
              client.println(data);
              client.println("</BODY>");
              client.println("</HTML>");
     
              delay(1);
              //stopping client
              client.stop();
         
              if(readString.indexOf("?F1on") >0)
              {
                digitalWrite(7,LOW);
                data = 1;
                 }
             
              if(readString.indexOf("?F1off") >0)
              {
               digitalWrite(7,HIGH);
               data = 0;
                 }
                 
              readString="";

     
            }
          }
        }
      }

    }
10  Using Arduino / Project Guidance / Another home automation idea, but with feedback on: April 03, 2013, 01:09:50 pm
I want to make a bunch of modules that i can fit to the back of wall switches so that I can choose to switch them using an arduino.  I want to still be able to control the lihght at the wall manually too.  The attached picture shows a schematic of an hall effect current sensor a relay module and the wall switch.  I've found a couple of nice break out boards to do what I need. I was also thinking of daisy chaining 3 together with RJ45 sockets.  Any thoughts?
11  Using Arduino / Sensors / Re: Reading pulses from another circuit on: February 13, 2013, 04:31:39 am
Trying the opto isolator solution this evening. Thanks guys.
12  Using Arduino / Sensors / Reading pulses from another circuit on: January 26, 2013, 08:38:39 am
So, I'm trying make a shift light for my 1992 BMW.  Looking on the BMW forums, I can get to my tacho wire (not OBDII car is too old).  First off I'm just trying to get pulseIn (or alternative) to work.
I have my Nano with a simple bit of code to provide a pulse that my Uno can read.
pin10 high, delay(100), pin10 low, delay(duration) - duration controlled by a potentiometer on the Nano.
So I'm treating pin10 as the cable i find in the car, I can hopefully calibrate later once i get it functioning.

Not had much luck with pulseIn function and I'm a bit confused about what my wiring should look like. I wonder if anyone can help.

I tried the pulseIn tutorial, (not a lot of info on the page)  also found a nice bit code that could replace pulseIN
if (digitalRead(inputPin) == HIGH)
       {
         pulseBegin = millis();
         while (digitalRead(inputPin) == HIGH){}
         pulseDuration = millis()-pulseBegin;
         Serial.println(pulseDuration);
       }

My wiring tried just bridging output pin 10 on nano to input pin on the uno, but i don't get any change in the serial reading when i tweek the nano potentiometer.

I always think with my electrical brain rather than electronics, what I'd like to wire up is the equivalent of;
The nano/car signal drives a relay coil, then the uno has +5v going to the power side of the relay and a digital-in pin from the NO contact.

I'm beggining to dable with transistors and it feels like I should use one here, but don't quite know how to read by 4 pin relay concept to the 3 pins on the transistor.

Hope this makes sense!

Many thanks
Neal
13  Using Arduino / General Electronics / Re: Protecting inputs from momentary high current and voltage on: December 27, 2012, 12:05:12 pm
Great thanks guys, i'm using an 8 gang single pole relay board (it was what i had around), so limited to that, but I wonder if i can use the second contact and a diode? see diagram;


arduino 5v---------->diode>----------¦--------match------¦-------relay NC--------input pin
                                                      ¦                            ¦
car battery -12v------------------------                             ------relay NO------car battery +12v

perhaps adding a optoisolator in where the diode is might get me there?

Thanks for the quick replies, trying to get this done for new year celebrations!
14  Using Arduino / General Electronics / Protecting inputs from momentary high current and voltage on: December 27, 2012, 10:57:27 am
I have an electronic match lighting system to ignite fireworks, when a firework match is plugged in I read that the pin goes high (a small amount of current from the arduino doesn't light the fuse). (this lights an LED and tells me i have connected the match properly).  I have a shift register controlling a bunch of relays that put 12v from a car battey accross the ignitor to set it off. However, I'm worried that i might fry my input pin, even if its "after" the ignitor.  Been looking around, is this my best solution?
http://www.thebox.myzen.co.uk/Tutorial/Protection.html
Once the match has burnt it breaks the loop.

Would rather fewer components if possible, thinking i could bung a big capacitor between match and pin in?

Quick diagram might help(ish!)

       arduino 5v--------------------¦--------match------¦---input pin
                                                 ¦                            ¦
car battery +12v----------relay----                            -------car battery -ve


Thanks
Neal
15  Using Arduino / Sensors / Re: Reading various sensors in an automobile - voltage dividing, multiplex, filter on: October 28, 2012, 03:14:02 pm
Interesting project, how have you got on with it? I'm looking to do something similar
Pages: [1] 2