Recent Posts

Pages: [1] 2 3 ... 10
Français / Re: ESP32 (installation)
Last post by Artouste - Today at 03:05 pm
Oui je venais de le faire, il va falloir me lancer dans le dur : ici
comme le suggérait al1fch
Mais j'avoue que j'hésite  :smiley-confuse:
Si quelqu'un a une autre idée, genre créer un autre chemin lors de l'installation de l'IDE peut être ?

supprime le dossier espressif
et recommence l'install du debut
Project Guidance / Re: SIM800L SMS Sending Issue
Last post by dannable - Today at 03:01 pm
That code won't compile. When you post something that will then perhaps we'll be able to help you.
Project Guidance / Re: A INTERFACE OF SENDING AND...
Last post by wvmarle - Today at 02:59 pm
Your code doesn't compile:
Code: [Select]
Arduino: 1.8.1 (Linux), Board: "Arduino Pro or Pro Mini, ATmega328P (5V, 16 MHz)"

sketch_sep23a.ino: In function 'void loop()':
sketch_sep23a:78: error: incompatible types in assignment of 'int' to 'volatile uint8_t [45] {aka volatile unsigned char [45]}'
     for (int i = 0; i < 5; i++) buffer = 0;
exit status 1
incompatible types in assignment of 'int' to 'volatile uint8_t [45] {aka volatile unsigned char [45]}'
Generale / Re: Info
Last post by docsavage - Today at 02:59 pm
Se da questa simulazione togli ancora qualcosa rimani in piedi senza la sedia

Una simulazione qualcosa dovrà  pur simulare.. un minimo dovrà  pure esserci

Tu hai tolto la pompa, i serbatoi,..., per il cambio velocità  hai pensato a due led, non misuri più  il livello

Tra poco ti basta un interruttore per accendere un motore, che sarà una lampadina..

Dai dopo se semplifichi ancora ti basta alzarti dal divano per accendere la luce, che simula il motore che simula la pompa c'he simula.....

Last post by flash6386 - Today at 02:58 pm
Hola soy flash6386 y tengo un problema:

Al comprar un robot de compañia freenove, en un winrar the venía lo que as de programar en tu robot y esto es:
  Sketch    Remote control mode sketch for car
  Platform  Freenove Three-wheeled Smart Car Kit for Arduino
  Author    Ethan Pan @ Freenove (
  Date      2016/10/7
  Brief     This sketch is used to achieve remote control mode for Freenove Three-wheeled
            Smart Car Kit for Arduino. This sketch needs to be uploaded to the car.
            The car needs to install NFR24L01 wireless communication module, can choose to
            install RGB LED module and passive buzzer module.
  Copyright Copyright © Freenove (
  License   Creative Commons Attribution ShareAlike 3.0

// NRF24L01
#include <SPI.h>
#include "RF24.h"
RF24 radio(9, 10);                // define the object to control NRF24L01
const byte addresses[6] = "Free1";// define communication address which should correspond to remote control
// servo
#include <Servo.h>
Servo dirServo;                  // define servo to control turning of smart car
const int dirServoPin = 2;        // define pin for signal line of the last servo
byte dirServoOffset = 0;          // define a variable for deviation(degree) of the servo
// motor
const int dirAPin = 7,            // define pin used to control rotational direction of motor A
          pwmAPin = 6,            // define pin for PWM used to control rotational speed of motor A
          dirBPin = 4,            // define pin used to control rotational direction of motor B
          pwmBPin = 5,            // define pin for PWM used to control rotational speed of motor B
          snsAPin = A0,           // define pin for detecting current of motor A
          snsBPin = A1,           // define pin for detecting current of motor B
          buzzerPin = 3,          // define pin for buzzer
          ledRPin = A3,           // define R pin of RGBLED
          ledGPin = A4,           // define G pin of RGBLED
          ledBPin = A5;           // define B pin of RGBLED
const byte motorSpeed = 255;      // define motor speed(0-255)
// wireless communication
int dataRead[8];                  // define array used to save the read data
const unsigned long wirelessOvertime = 200; // define communication overtime(ms)
unsigned long lastReceivedSignal; // define a variable to save the time(ms) of last received the signal

void setup() {
  // serial port
  // NRF24L01
  radio.begin();                      // initialize RF24
  radio.setPALevel(RF24_PA_LOW);      // set power amplifier (PA) level
  radio.setDataRate(RF24_1MBPS);      // set data rate through the air
  radio.setRetries(0, 15);            // set the number and delay of retries
  radio.openWritingPipe(addresses);   // open a pipe for writing
  radio.openReadingPipe(1, addresses);// open a pipe for reading
  radio.startListening();             // start monitoringtart listening on the pipes opened
  // servo
  dirServo.attach(dirServoPin); // attaches the servo on dirServoPin to the servo object
  // motor
  pinMode(dirAPin, OUTPUT);     // set dirAPin to output mode
  pinMode(pwmAPin, OUTPUT);     // set pwmAPin to output mode
  pinMode(dirBPin, OUTPUT);     // set dirBPin to output mode
  pinMode(pwmBPin, OUTPUT);     // set pwmBPin to output mode
  // pin
  pinMode(buzzerPin, OUTPUT);   // set buzzerPin to output mode
  pinMode(ledRPin, OUTPUT);     // set ledRPin to output mode
  pinMode(ledGPin, OUTPUT);     // set ledGPin to output mode
  pinMode(ledBPin, OUTPUT);     // set ledBPin to output mode
  digitalWrite(ledRPin, HIGH);  // turn off R LED
  digitalWrite(ledGPin, HIGH);  // turn off G LED
  digitalWrite(ledBPin, HIGH);  // turn off B LED

void loop()
  // read radio data
  if ( radio.available()) {             // if receive the data
    while (radio.available()) {         // read all the data, sizeof(dataRead));   // read data

    // calculate the angle of turning
    int dirServoDegree = map(dataRead[2], 0, 1023, 135, 45) - (dataRead[0] - 512) / 25;
    // calculate speed of moving
    int motorSpd = dataRead[3] - 512 + (dataRead[1] - 512) / 10;
    bool motorDir = motorSpd > 0 ? BACKWARD : FORWARD;
    motorSpd = abs(constrain(motorSpd, -512, 512));
    motorSpd = map(motorSpd, 0, 512, 0, motorSpeed);

    // control the turning and moving of the car
    ctrlCar(dirServoDegree, motorDir, motorSpd);

    // control the buzzer
    if (!dataRead[4])
      tone(buzzerPin, 2000);

    // control the RGB LED
    digitalWrite(ledRPin, dataRead[5]);
    digitalWrite(ledGPin, dataRead[6]);
    digitalWrite(ledBPin, dataRead[7]);

    // save the time of last received the wireless signal
    lastReceivedSignal = millis();
  else {
    // if lose wireless signal for a long time
    if (millis() - lastReceivedSignal >= wirelessOvertime) {
      // stop the car
      analogWrite(pwmAPin, 0);
      analogWrite(pwmBPin, 0);
      // turn off the buzzer
      // turn off the RGB LED
      digitalWrite(ledRPin, HIGH);
      digitalWrite(ledGPin, HIGH);
      digitalWrite(ledBPin, HIGH);

  // send motor current to serial port
  float iMotorA = analogRead(snsAPin) * 5.0 / 1024 / 30 / 0.05;
  float iMotorB = analogRead(snsBPin) * 5.0 / 1024 / 30 / 0.05;
  Serial.print("iMotorA: ");
  Serial.print(" A ,iMotorB: ");
  Serial.println(" A");

void ctrlCar(byte dirServoDegree, bool motorDir, byte motorSpd) {
  dirServo.write(dirServoDegree + dirServoOffset);
  digitalWrite(dirAPin, motorDir);
  digitalWrite(dirBPin, motorDir);
  analogWrite(pwmAPin, motorSpd);
  analogWrite(pwmBPin, motorSpd);

Cuando enciendo el robot automáticamente las ruedas se van hacia la parte derecha y empieza vibrar.

Ayuda por favor.
Programming Questions / Re: RadioHead Library conflict
Last post by aarg - Today at 02:57 pm
thanks for your answer
sorry.. not sure what is ISR.. do you suggest to process everything in the main code so it will less conflict?
Yes, and you can find "isr" if you do a text search in the code.
Project Guidance / Re: A INTERFACE OF SENDING AND...
Last post by wvmarle - Today at 02:56 pm
i have got every thing how to connect and code is fine i just want to know how to reset arduino using the proximity sensor pnp
Proper capitalising and using punctuation goes a long way in making other people understand what you're talking about. Assuming you can write C++, you must know about those parts as they're quite essential. Please apply it to your English. The edits by other contributors (isn't it wonderful how much effort people put in trying to understand you?) go a long way but I for one am still quite at a loss of what you really want.

Schematics, code (between code tags), and an explanation of what's really going on would be helpful. Photos may also be useful.
Project Guidance / Re: AD9854 DDS Help
Last post by vhf_builder - Today at 02:56 pm
Hi guys sorry for the late reply - I will try and get the code uploaded this weekend.


Project Guidance / Re: Ultrasonic sensor add cm
Last post by Petervn - Today at 02:54 pm
Im new to this.
Deutsch / Re: Messen von Spannung mit Pe...
Last post by arduino-wasser - Today at 02:54 pm
Oh nein, tut mir Leid....ich habe mich noch nicht entschieden. Das war nur der einzige ???sinnvolle??? Einfall den ich hatte und ich dabei wusste wie ich herangehen sollte.

Wenn du sagst das man normalerweise Suppressordioden oder Z-Dioden nimmmt, nehme ich natürlich den Vorschlag gerne an. Ich bin da sehr offen und lernfähig.

Könntest du mir eventuell sagen auf welche Druchbruchspannung die Z-Diode ausgelegt sein soll? Wie sollte ich dann deren Vorwiderstand dimensionieren?
Kannst du mir da vielleicht ein kurzes Beispiel nennen? Danke schonmal sehr.
Pages: [1] 2 3 ... 10