‏إظهار الرسائل ذات التسميات arduino. إظهار كافة الرسائل
‏إظهار الرسائل ذات التسميات arduino. إظهار كافة الرسائل

الجمعة، 2 يناير 2026

How to assemble and control a 4 DOF robot mechanical arm kit with Arduin...



Code source et schéma depuis le site officiel How to assemble and control a robot arm with an Arduino - SriTu Hobby
#include <Wire.h>
#include <Adafruit_PWMServoDriver.h>

Adafruit_PWMServoDriver srituhobby = Adafruit_PWMServoDriver();

#define servo1 0
#define servo2 1
#define servo3 2
#define servo4 3


void setup() {
  Serial.begin(9600);
  srituhobby.begin();
  srituhobby.setPWMFreq(60);
  srituhobby.setPWM(servo1, 0, 330);
  srituhobby.setPWM(servo2, 0, 150);
  srituhobby.setPWM(servo3, 0, 300);
  srituhobby.setPWM(servo4, 0, 410);
  delay(3000);
}

void loop() {

  for (int S1value = 330; S1value >= 250; S1value--) {
    srituhobby.setPWM(servo1, 0, S1value);
    delay(10);
  }

  for (int S2value = 150; S2value <= 380; S2value++) {
    srituhobby.setPWM(servo2, 0, S2value);
    delay(10);
  }

  for (int S3value = 300; S3value <= 380; S3value++) {
    srituhobby.setPWM(servo3, 0, S3value);
    delay(10);
  }

  for (int S4value = 410; S4value <= 510; S4value++) {
    srituhobby.setPWM(servo4, 0, S4value);
    delay(10);
  }
  ////////////////////////
  delay(2000);
  for (int S4value = 510; S4value > 410; S4value--) {
    srituhobby.setPWM(servo4, 0, S4value);
    delay(10);
  }

  for (int S3value = 380; S3value > 300; S3value--) {
    srituhobby.setPWM(servo3, 0, S3value);
    delay(10);
  }

  for (int S2value = 380; S2value > 150; S2value--) {
    srituhobby.setPWM(servo2, 0, S2value);
    delay(10);
  }

  for (int S1value = 250; S1value < 450; S1value++) {
    srituhobby.setPWM(servo1, 0, S1value);
    delay(10);
  }
  //////////////////////
  for (int S2value = 150; S2value <= 380; S2value++) {
    srituhobby.setPWM(servo2, 0, S2value);
    delay(10);
  }

  for (int S3value = 300; S3value <= 380; S3value++) {
    srituhobby.setPWM(servo3, 0, S3value);
    delay(10);
  }

  for (int S4value = 410; S4value <= 510; S4value++) {
    srituhobby.setPWM(servo4, 0, S4value);
    delay(10);
  }

  for (int S4value = 510; S4value > 410; S4value--) {
    srituhobby.setPWM(servo4, 0, S4value);
    delay(10);
  }
  ///////////////////
  for (int S3value = 380; S3value > 300; S3value--) {
    srituhobby.setPWM(servo3, 0, S3value);
    delay(10);
  }

  for (int S2value = 380; S2value > 150; S2value--) {
    srituhobby.setPWM(servo2, 0, S2value);
    delay(10);
  }

  for (int S1value = 450; S1value > 330; S1value--) {
    srituhobby.setPWM(servo1, 0, S1value);
    delay(10);
  }
}

الأحد، 19 مايو 2019

Barrière automatique

Le principe de fonctionnement de la barrière automatique réalisée est le suivant :
1.       Etat initiale : la barrière Servo1 est en position basse, la diode rouge DR est allumée et la diode verte DV est éteinte.
2.       Lorsqu’une voiture s’approche du premier capteur C1 (avant la barrière) d’une distance inférieure à 50 cm, la barrière se lève, la diode verte DV est allumée et la diode rouge DR est éteinte.

3.       Lorsque la voiture s’approche du deuxième capteur C2 (après la barrière) d’une distance inférieure à 50 cm, la barrière se baisse, la diode rouge DR est allumée et la diode verte DV est éteinte.


الثلاثاء، 29 مايو 2018

#2 Programmation Arduino: Les variables et leur type

#1 Programmation Arduino: intro et configuration du simulateur

How to Make Bluetooth Controlled Arduino Robot | with DIY Phone Application

How to Make Arduino Line Following / Follower Robot Car

الخميس، 8 مارس 2018

Arduino : Capteur à Ultrasons

Arduino et le Bouton

Arduino : Afficheur 7 segments récuperé

ARDUINO #4 : Utiliser une photorésistance [ tuto en français]

ARDUINO #9 : Ecran LCD [tuto en français]

ARDUINO #10 : Afficheur 7 segments [tuto en français]

الاثنين، 26 فبراير 2018

The Best Top 5 Robot Arduino Projects

Arduino Project Parking Sensor

Arduino parking lot (version 2)



Support me on patreon:https://www.patreon.com/techbuild? ---------------------------------------------------------------- This is the updated version of the automatic parking lot.Watch it here: https://youtu.be/L1KGLyXqsQo The max capacity of the lot is 7 cars.It shows a message on the LCD screen when the max capacity is reached and the barrier no longer opens until some cars exit. All of the computing work is done by an Arduino UNO as mentioned in the video. The components and parts used for this project are: An Arduino UNO microcontroller board A 16x2 LCD display A micro servo 2 IR proximity sensors(to detect the cars going in and coming out) 2 10k ohm resistors( as pull-down resistors for sensor's digital output) A 10k ohm potentiometer(accurately, a preset to change the LCD display's contrast) Some wires A DC power supply(5-12 volts)