element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Have a question about Arduino? Ask me!
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 1914 replies
  • Subscribers 528 subscribers
  • Views 68416 views
  • Users 0 members are here
  • jeremy_blum
  • expert
  • student
  • arduino
Related

Have a question about Arduino? Ask me!

sciguy14
sciguy14 over 15 years ago

This thread has been closed to new questions.

However, we welcome you to Post Your Questionabout Arduino in the element14 Community Arduino group.  You'll find many fellow members and experts who have just the answer you're looking to find! 

 

Thank You, Your Friends at element14 Community


image

Jeremy Blum

Jeremy is an Electrical and Computer Engineering Student at Cornell University. He has been building microcontroller projects since high school, from a prototype prosthetic hand with a novel control scheme, to a nerf gun that fires at the intruders and uploads their picture to the web.
  • Sign in to reply
  • Cancel

Top Replies

  • billabott
    billabott over 13 years ago in reply to e14 Contributor +2
    @Brendan Your video is somewhat adequate for the intended purpose, however, from an engineer's point of view it is lacking in providing pertinent facts. Such as the part number, data sheet, and source…
  • e14 Contributor
    e14 Contributor over 15 years ago +1
    Jeremy, thanks for your intro videos. I am just getting started myself in Arduino though I have done some simple electronics projects using Atmel chips. Here is an example using ATTiny13 chips. www.youtube…
  • e14 Contributor
    e14 Contributor over 15 years ago +1
    Hi Jeremy I've built a device (see picture) with an Arduino and Ethernet shield that connects to our Network Monitor (Nagios) and moves an arrow to indicate if any of the computers we monitor are not responding…
Parents
  • e14 Contributor
    e14 Contributor over 15 years ago

    I am completley new to the arduino, dont even have one yet, but eager to start soon. one question that i have, and it's mostly software related. Using the arduino uno with a ethershield, can data from a weather station be uploaded to wunderground.com as personal weather station data? Here is the pws upload protocol...

    http://wiki.wunderground.com/index.php/PWS_-_Upload_Protocol

    Like i said, i am really new to the arduino, but have been working with the propeller for quite awhile, so i think my transition will be fairly painless. is there code examples that would show me how to do this? Thanks in advance!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 14 years ago in reply to e14 Contributor

    Hi Jeremy,

     

    Am building an automatic railway gate control and track switching using the arduino Uno.

    Need help with programming an IR transmitter and receiver circuit to send a signal to a stepper motor when there is a interruption between the transmitter and receiver allowing the stepper motor to rotate in particular direction and retrun to the intial state after some seconds. During this process, an LED will switch to red to prevent motorist from crossing the railway.

    I already have a canakit stepper motor and easy driver stepper motor.

    Thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • e14 Contributor
    e14 Contributor over 14 years ago in reply to e14 Contributor

    Hi Jeremy,

     

    Am building an automatic railway gate control and track switching using the arduino Uno.

    Need help with programming an IR transmitter and receiver circuit to send a signal to a stepper motor when there is a interruption between the transmitter and receiver allowing the stepper motor to rotate in particular direction and retrun to the intial state after some seconds. During this process, an LED will switch to red to prevent motorist from crossing the railway.

    I already have a canakit stepper motor and easy driver stepper motor.

    Thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • billabott
    billabott over 14 years ago in reply to e14 Contributor

    //define pins. I used pins 4 and 5

    #define irLedPin 4          // IR Led on this pin

    #define irSensorPin 5       // IR sensor on this pin

     

    int irRead(int readPin, int triggerPin); //function prototype

     

    void setup()

    {

      pinMode(irSensorPin, INPUT);

      pinMode(irLedPin, OUTPUT);

      Serial.begin(9600);

      // prints title with ending line break

      Serial.println("Program Starting");

      // wait for the long string to be sent

      delay(100);

    }

     

    void loop()

    { 

                  //  call a StreetLights() function here if you wish

                       // or at end of the setup()

      if (irRead(irSensorPin, irLedPin))=0

      {

         lowerCrossingGate();

      }

    }

     

    void lowerCrossingGate()

    {

                             // turn on traffic light code here

                            //  put motor control code here

                   //  here is a tutorial for steppers that may help you:

                   //  http://www.arduino.cc/en/Tutorial/StepperUnipolar

                             // turn off traffic light after motor position reversed

    }

     

     

    /******************************************************************************

    * This function can be used with a panasonic pna4602m ir sensor

    * it returns a zero if something is detected by the sensor, and a 1 otherwise

    * The function bit bangs a 38.5khZ waveform to an IR led connected to the

    * triggerPin for 1 millisecond, and then reads the IR sensor pin to see if

    * the reflected IR has been detected

    ******************************************************************************/

    int irRead(int readPin, int triggerPin)

    {

      int halfPeriod = 13; //one period at 38.5khZ is aproximately 26 microseconds

      int cycles = 38; //26 microseconds * 38 is more or less 1 millisecond

      int i;

      for (i=0; i <=cycles; i++)

      {

        digitalWrite(triggerPin, HIGH);

        delayMicroseconds(halfPeriod);

        digitalWrite(triggerPin, LOW);

        delayMicroseconds(halfPeriod - 1);     // - 1 to make up for digitaWrite overhead   

      }

      return digitalRead(readPin);

    }

     

    Modified from original Source:  http://www.arduino.cc/playground/Main/PanasonicIrSensor

     

    -= Syntax Matters =-

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 14 years ago in reply to billabott

    Thanks. I'll try this out.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube