1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

Aircores & Ardurino Controller

Discussion in 'DIY peripherals' started by wimpo`, Jun 15, 2010.

  1. wimpo`

    wimpo` Member

    Joined:
    Jul 27, 2008
    Messages:
    89
    Occupation:
    metselaar
    Location:
    nederland, twente, vroomshoop
    Balance:
    178Coins
    Ratings:
    +5 / 0 / -0
    that's a nice way to save some pins.
    Heavy Duty Arduino Motor Controller
    And this would be a nice way of controlling some high current motors.
  2. herctrap

    herctrap Member

    Joined:
    Apr 5, 2010
    Messages:
    88
    Location:
    Ilion / Pylos
    Balance:
    243Coins
    Ratings:
    +0 / 0 / -0
    Re: Custom dashboard-stepper motor / LCD / servos / 7-Seg / leds

    or you can use shift registers

    i had only the mega board

    or you can use 2 shift registers for the leds and the 7 seg
  3. herctrap

    herctrap Member

    Joined:
    Apr 5, 2010
    Messages:
    88
    Location:
    Ilion / Pylos
    Balance:
    243Coins
    Ratings:
    +0 / 0 / -0
    Re: Custom dashboard-stepper motor / LCD / servos / 7-Seg / leds

    did you find anything on how to drive the aircores
  4. Frakk

    Frakk Active Member

    Joined:
    Apr 15, 2009
    Messages:
    1,144
    Balance:
    328Coins
    Ratings:
    +4 / 0 / -0
    Re: Custom dashboard-stepper motor / LCD / servos / 7-Seg / leds

    Nice work herctrap! :clap:

    I am not a big fan of the arduinos personally, but I have to admit they are great if you want to make something work quickly with the least amount of effort.

    The motor controllers OK, Pololu offers pretty much the same package for $75. A bit overpriced for my preference, but if you can't build your own they will work fine. Don't forget to heatsink.

    PS. Can you attach the source file as an attachment to your post? It won't take a minute to scroll through the page that way. :thbup:
  5. wimpo`

    wimpo` Member

    Joined:
    Jul 27, 2008
    Messages:
    89
    Occupation:
    metselaar
    Location:
    nederland, twente, vroomshoop
    Balance:
    178Coins
    Ratings:
    +5 / 0 / -0
    Re: Custom dashboard-stepper motor / LCD / servos / 7-Seg / leds

    no ready code but a about a year ago I got an air-core to turn 360+ degrees with the ladyada motor shield and the stepper library.
    I never got it to run smoothly it would go 180 degrees slow to fast pause and then another 180 degrees slow to fast.
    sometimes it went backwards. never got it to stop halfway thou.

    About being a fan or not its a great platform for someone like me, because i've managed to ruin one AMC 1.5b and one DSMHB 1.2 without even trying :blush:
    It's not that i can't learn its more that i don't have the patience. I always want to have it done yesterday :)
    So learning the arduino way is the way for me because most of the things have been done or parts of existing projects can be used.
    And the language is sort of php like and I do know php.

    ps i hope Tronicgr got his Arduino Mega to, i've read on the internet that it would be 4-7 work days (Holland -> Greece)
  6. Frakk

    Frakk Active Member

    Joined:
    Apr 15, 2009
    Messages:
    1,144
    Balance:
    328Coins
    Ratings:
    +4 / 0 / -0
    Re: Custom dashboard-stepper motor / LCD / servos / 7-Seg / leds

    As I said:

    I have to admit they are great if you want to make something work quickly with the least amount of effort.

    :cheers:
  7. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Re: Custom dashboard-stepper motor / LCD / servos / 7-Seg / leds

    I almost did today, but the delivery guy came when I was not home... lol... called them back and have them to delivery it at my work's address tomorrow... :D

    :cheers:

    Thanos
  8. herctrap

    herctrap Member

    Joined:
    Apr 5, 2010
    Messages:
    88
    Location:
    Ilion / Pylos
    Balance:
    243Coins
    Ratings:
    +0 / 0 / -0
    Re: Custom dashboard-stepper motor / LCD / servos / 7-Seg / leds

    i only had an arduino mega

    and i start with mocrocontrollers 1 month ago

    this is my seconde project the hard part was to red the data from the pc

    without the delays it dosent work

    ----------------

    but how can i send data to the game

    read sensors from the arduino

    then the data goes to the profiller and then to the game

    ----------------

    and how can i set the min value to +0 and the max to +255


    thanks a lot




    thanos i am here to help with the arduino

    yes i am cheating i am writing in greek
    αν και δεν νομιζω να χρειαστεις
  9. wimpo`

    wimpo` Member

    Joined:
    Jul 27, 2008
    Messages:
    89
    Occupation:
    metselaar
    Location:
    nederland, twente, vroomshoop
    Balance:
    178Coins
    Ratings:
    +5 / 0 / -0
    Re: Custom dashboard-stepper motor / LCD / servos / 7-Seg / leds

    At least it made it :cheers:
    I hope that there is no damage to the board, I've read some horror stories today about cross border mail :eek:

    I got the air-core again and run it on a diecimila for trial and error purpose i use the diecimila ;)

    so just on 5V it will turn slowly 360 degrees with this simple code.
    Code:
    int ledPin =  10;    // LED connected to digital pin 13
    int ledPin2 =  11;    // LED connected to digital pin 13
    int ledPin3 =  12;    // LED connected to digital pin 13
    int ledPin4 =  13;    // LED connected to digital pin 13
    
    void setup()
    {
      pinMode(ledPin, OUTPUT);    
      pinMode(ledPin2, OUTPUT);    
      pinMode(ledPin3, OUTPUT);    
      pinMode(ledPin4, OUTPUT);    
    }
    
    void loop()
    {
      
      digitalWrite(ledPin, HIGH);   
      digitalWrite(ledPin2, LOW);  
      digitalWrite(ledPin3, LOW);  
      digitalWrite(ledPin4, LOW);   
      delay(3000);                  
      digitalWrite(ledPin, LOW);    
      digitalWrite(ledPin2, HIGH);   
      digitalWrite(ledPin3, LOW);  
      digitalWrite(ledPin4, LOW);   
      delay(3000);   
      digitalWrite(ledPin, LOW);    
      digitalWrite(ledPin2, LOW);   
      digitalWrite(ledPin3, HIGH);   
      digitalWrite(ledPin4, LOW);   
      delay(3000);   
      digitalWrite(ledPin, LOW);    
      digitalWrite(ledPin2, LOW);   
      digitalWrite(ledPin3, LOW);   
      digitalWrite(ledPin4, HIGH);   
      delay(3000);   
    }
    [​IMG]
    I think it will turn a lot faster on 12V :brows:
  10. willynovi

    willynovi Member

    Joined:
    Feb 13, 2009
    Messages:
    64
    Location:
    Argentina
    Balance:
    354Coins
    Ratings:
    +2 / 0 / -0
    Re: Custom dashboard-stepper motor / LCD / servos / 7-Seg / leds

    what type of data do you want to send? you mean like axis to control like throtle, brake, steering wheel?
    To do this you can built something like Mjoy16 or WN_Controller, but with your Arduino.

    witch game do you use?

    As I know, Force Sender can only manage output data :(
  11. herctrap

    herctrap Member

    Joined:
    Apr 5, 2010
    Messages:
    88
    Location:
    Ilion / Pylos
    Balance:
    243Coins
    Ratings:
    +0 / 0 / -0
    Re: Custom dashboard-stepper motor / LCD / servos / 7-Seg / leds

    lfs only
  12. herctrap

    herctrap Member

    Joined:
    Apr 5, 2010
    Messages:
    88
    Location:
    Ilion / Pylos
    Balance:
    243Coins
    Ratings:
    +0 / 0 / -0
    Re: Custom dashboard-stepper motor / LCD / servos / 7-Seg / leds

    i dont think that it will turn faster

    it will if you make the 3000 to 1000 try it
  13. herctrap

    herctrap Member

    Joined:
    Apr 5, 2010
    Messages:
    88
    Location:
    Ilion / Pylos
    Balance:
    243Coins
    Ratings:
    +0 / 0 / -0
    Re: Custom dashboard-stepper motor / LCD / servos / 7-Seg / leds

    are you sure that this is an aircore?

    [​IMG]

    [​IMG]

    this is a stepper
  14. wimpo`

    wimpo` Member

    Joined:
    Jul 27, 2008
    Messages:
    89
    Occupation:
    metselaar
    Location:
    nederland, twente, vroomshoop
    Balance:
    178Coins
    Ratings:
    +5 / 0 / -0
    Re: Custom dashboard-stepper motor / LCD / servos / 7-Seg / leds

    [​IMG]
    No its an air-core al right, it looks almost identical to picture. maybe its just a slow air-core its from an Renault laguna cluster.
    And in our car the air-core is also responding slowly so maybe the type of air-core is essential as well.

    http://www.youtube.com/watch?v=IGI6cF0o2Y4
    Also with a stepper motor approach.
  15. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Re: Custom dashboard-stepper motor / LCD / servos / 7-Seg / leds


    Wimpo, its true... Air cores are similar to steppers but analog !!! And they require from you to have excited the opposite coil in order for the active one to precisely positioned because they lack permanent magnet !!! Thats how they got their air core name :brows:

    Thanos
  16. herctrap

    herctrap Member

    Joined:
    Apr 5, 2010
    Messages:
    88
    Location:
    Ilion / Pylos
    Balance:
    243Coins
    Ratings:
    +0 / 0 / -0
    Re: Custom dashboard-stepper motor / LCD / servos / 7-Seg / leds

    ok we have 4 wires

    what do we need to give them so we could set it to one position?
  17. Mambo

    Mambo New Member

    Joined:
    Aug 5, 2008
    Messages:
    168
    Location:
    Czech Republic
    Balance:
    288Coins
    Ratings:
    +1 / 0 / -0
  18. wimpo`

    wimpo` Member

    Joined:
    Jul 27, 2008
    Messages:
    89
    Occupation:
    metselaar
    Location:
    nederland, twente, vroomshoop
    Balance:
    178Coins
    Ratings:
    +5 / 0 / -0
    this sounds like I have an air-core from a fuel indicator.
    Witch is quite possible because i had 3 don't know where the others are.
  19. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Re: Custom dashboard-stepper motor / LCD / servos / 7-Seg / leds

    Here is some interesting info on the principle they are driven with PWM signals... There is a table the shows the combinations!
    Air core gauge multi frequency pulse width modulator patent 005309087.pdf

    Most of the electronic circuits shown there can be replaced by just a simple hbridge chip like L293D ... :rofl:
    aircore controller PHCC_DOA_stepper_sch.png

    We can build it!!!

    Thanos



    PS. For one more time I hate post offices bureaucracy... I will not be delivered the package with arduino mega until tommorow... :biw:
  20. wimpo`

    wimpo` Member

    Joined:
    Jul 27, 2008
    Messages:
    89
    Occupation:
    metselaar
    Location:
    nederland, twente, vroomshoop
    Balance:
    178Coins
    Ratings:
    +5 / 0 / -0
    Re: Custom dashboard-stepper motor / LCD / servos / 7-Seg / leds

    :yippiee:



    I hope that it will be delivered to and that you are at home when it does.