I am a newbie to Arduino but I know the basics

I am a newb to arduino but I know the basics. So could you guys tell me what project I should start with.

  • What are you interested in ?

  • What projects have you made in the past ?

  • What hardware experience do you have ?

  • A Servo Motor project is fun to make.

What does that mean? Welcome to the Arduino forum. Please introduce your self and what have you done with electronics and computers in the past? Do you know the basics of program design?

Not OP, but I would be appreciative if you could elaborate a little, or provide a link. I assume that what you have in mind would be something more involved (and more "fun") than just sending some kind of PWM signal from the Arduino to the motor inputs...

1 Like
  • Example
1 Like

I am interested in how to use an ultrasonic sensor and a temp and humidity sensor. In the past, I have made an interactive led lamp and am making a remote control car.

I also need help building the remote control car. I think I have all the supplies:
dc motor
servo
ir reciever module
remote control
Lego frame
Arduino uno

That means I only know the basics of coding but not the coding required for complex sensors.

  • Show us good images of your hardware components.
  • Do you have a DMM ?
  • Do you have a 6V AA battery pack ?
  • Do you have soldering equipment ?



  • Okay, here is your next project:
    Enter a 3 digit number (followed by #) with the IR Remote to make the Servo move to a servo position 0 to 180°.

  • Draw a schematic showing us how you will connect this project’s components.

I have a DMM, soldering equipment, and a 9v battery.
this is the image

could you explain a little bit more.

We need to see a good image of your available hardware.


What do you need more information on ?

  • Enter a 3 digit number (followed by #) with the IR Remote to make a Servo move to a servo position 0 to 180°.
  • Draw a schematic showing us how you will connect this project’s components.

We never power a motor from an Arduino or 9v battery.

I need more information on the code part.

By the way. How do you post an image on the arduino forum.

  • Your sketch should look for an IR receive chacter from your IR remote.
    The code should collect up to 3 digits, 0-180, then move the servo to that position. Also, the # is to be used as a terminator.

example:
0# (EQ) will make the servo move to position 0°
30# (EQ) will make the servo move to position 30°
120# (EQ) will make the servo move to position 120°

1 Like

Copy the image in your browser, paste it into your post.
OR
Use the image upload icon.

thank you :slightly_smiling_face:

  • Hint, if you have an IR remote that uses the NEC protocol, start here:
//================================================^================================================
//
//  URL
//
//  Your Name
//
//  Version    YY/MM/DD    Comments
//  =======    ========    ========================================================================
//  1.00       YY/MM/DD    Running code
//
//
//
//  Notes:
//


#include <IRremote.hpp>    //IRremote library , version 4.4.0


//================================================
#define LEDon                  HIGH   //PIN---[220R]---A[LED]K---GND
#define LEDoff                 LOW

#define PRESSED                LOW    //+5V---[Internal 50k]---PIN---[Switch]---GND
#define RELEASED               HIGH

#define CLOSED                 LOW    //+5V---[Internal 50k]---PIN---[Switch]---GND
#define OPENED                 HIGH

#define ENABLED                true
#define DISABLED               false

#define MAXIMUM                180
#define MINIMUM                0

#define DECODE_NEC

//                                            G P I O s
//================================================^================================================
//

const byte IR_RECEIVE_PIN      = 2;
const byte heartbeatLED        = 13;


//VARIABLES
//================================================
//
//timing stuff
unsigned long heartbeatTime;
unsigned long irTime;


//                                           s e t u p ( )
//================================================^================================================
//
void setup()
{
  Serial.begin(9600);

  IrReceiver.begin(IR_RECEIVE_PIN);

  digitalWrite(heartbeatLED, LEDoff);
  pinMode(heartbeatLED, OUTPUT);

} //END of   setup()


//                                            l o o p ( )
//================================================^================================================
//
void loop()
{
  //========================================================================  T I M E R  heartbeatLED
  //is it time to toggle the heartbeat LED ?
  if (millis() - heartbeatTime >= 500ul)
  {
    //restart this TIMER
    heartbeatTime = millis();

    //toggle the heartbeat LED
    digitalWrite(heartbeatLED, digitalRead(heartbeatLED) == HIGH ? LOW : HIGH);
  }

  //========================================================================  T I M E R  IR
  //is it time to check for a new IR receive code ?
  if (millis() - irTime >= 100ul)
  {
    //restart this TIMER
    irTime = millis();

    if (IrReceiver.decode() && !(IrReceiver.decodedIRData.flags & IRDATA_FLAGS_IS_REPEAT))
    {
      checkIRcode();
    }

    IrReceiver.resume();

  }


  //================================================
  //other non blocking code goes here
  //================================================


} //END of   loop()


//                                     c h e c k I R c o d e ( )
//================================================^================================================
void checkIRcode()
{
  Serial.println(IrReceiver.decodedIRData.command, HEX);

} //END of   checkIRcode()




//================================================^================================================
  • When you get the sketch in the previous post working, confirm your IR remote button codes with those in this chart.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.