Pages: [1] 2 3 ... 10
 on: Today at 01:56:49 am 
Started by jrdoner - Last post by BKnound8677
It didn't make any difference in my hair then I will just say gal whatnot if you know whatever but I feel the difference in my hair out on now live glad I'm not really checking Ripped Muscle X fatherland I'm really checking for the healthiness marker a pattern you know if you know if it grows slow whatever I'm okay with that said Hal death my view after  days Allen’s full tested bang a game will be the deep conditioning treatment but if she changes this me and just a little bit on the apology in

 on: Today at 01:56:29 am 
Started by dssence - Last post by Robin2
I wonder if it wouldn't be easier to understand what happens (without perhaps worrying too much about HOW it happens) by studying the Atmel datasheet for the Atmega328.

Asssuming the Arduino code works properly (and in general it all does) then it MUST translate the code into whatever is required by the 328 chip.

Then if you want to figure out HOW the Arduino code does its thing you can use your knowledge of what the chip requires (from the datasheet) to tackle the Arduino code from both ends.


 on: Today at 01:55:34 am 
Started by BKnound8677 - Last post by BKnound8677
I would probably build starting date over here but I'm going to continue to use them until they go I got to get some are more store as well she say she said is or crack think I'm good on pool but I’m getting a lot nervous I may have to give me some propel you know from my hair I would Ripped Muscle X give them the freemen in the butter cream actors made would ask does she go with more what happened more but it works form hair you know everything I do work for mohair my hair to you know it asked suggest her  you know it just me is what he is I do and I was camp you not want it to work but have I wanted it to work an idiot he would know where death .

 on: Today at 01:51:05 am 
Started by sdeees_oiduts - Last post by sdeees_oiduts
Hello i'm doing a project on controlling an RC toy car using android application , the arduino receives a  command from the app via bluetooth (F, B, R, or L) and the car  moves forward , backwards , left or right. the project also includes the app receiving data taken from an ultrasonic sensor connected on a servo motor above the car and data from a temperature sensor. the project works just fine without adding the ultrasonic sensor code or the temp sensor code , when i add any of them (  for the ultrasonic i used the one in the built in examples in arduino)  i receive the data on the app but the car goes haywire .. i disconnect the bluetooth and it moves forward , backwards left or right without any commands !!
i'm new to using arduino and i used chunks of online codes to make this program
this is the code with the ultrasonic sensor
#include <Servo.h>
#include <L293.h>
#define pinLeft       10
#define pinRight      11

#define pinForward     5
#define pinBack        6

//L293(pinLeft, pinRight, pinLftRgtEn, pinForward, pinBack, pinFwdBakVel);
L293 yellowCar(pinLeft,pinRight,0,pinForward,pinBack,0);
char command = 'S';
char prevCommand = 'A';
int velocity = 0;
unsigned long timer0 = 2000;  //Stores the time (in millis since execution started)
unsigned long timer1 = 0;  //Stores the time when the last command was received from the phone
Servo myservo;  // create servo object to control a servo
                // a maximum of eight servo objects can be created
int pos;
int pos1 = 0;    // variable to store the servo position
const int pingPin = 7;
long duration, cm;
void setup(){
  Serial.begin(9600);  //Set the baud rate to that of your Bluetooth module.
   myservo.attach(4);  // attaches the servo on pin 4 to the servo object

void loop(){
  pinMode(pingPin, OUTPUT);
  digitalWrite(pingPin, LOW);
  digitalWrite(pingPin, HIGH);
  digitalWrite(pingPin, LOW);

  // The same pin is used to read the signal from the PING))): a HIGH
  // pulse whose duration is the time (in microseconds) from the sending
  // of the ping to the reception of its echo off of an object.
  pinMode(pingPin, INPUT);
  duration = pulseIn(pingPin, HIGH);

  // convert the time into a distance
  cm = microsecondsToCentimeters(duration);
  if(Serial.available() > 0){
    timer1 = millis();   
    prevCommand = command;
    command =;
    //Change pin mode only if new command is different from previous.   
      case 'F': 
      case 'B': 
      case 'L': 
      case 'R':
      case 'S': 
        if (command =='F')
{  pos = pos1;// in steps of 1 degree
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
}   else  if (command =='R')
{  pos = pos1-45;// in steps of 1 degree
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
}    // waits 15ms for the servo to reach the position
 else if (command== 'L')
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    delay(15);                       // waits 15ms for the servo to reach the position
    timer0 = millis();  //Get the current time (millis since execution started).
    //Check if it has been 500ms since we received last command.
    if((timer0 - timer1)>500){ 
      //More tan 500ms have passed since last command received, car is out of range.
      //Therefore stop the car and turn lights off.
long microsecondsToCentimeters(long microseconds)
  // The speed of sound is 340 m/s or 29 microseconds per centimeter.
  // The ping travels out and back, so to find the distance of the
  // object we take half of the distance travelled.
  return microseconds / 29 / 2;

 on: Today at 01:50:56 am 
Started by lemat - Last post by B@tto

Y'a rien de compliquer : les nrf demande 5 bytes pour définir une adresse (d'ailleurs ton premier exemple ne donnera pas 7 et 49, mais les code ascii de 7 et de 4 et de 9), un peu comme une adresse ip.

Donc un tableau de byte :

byte emetteur[]={0,0,0,0,7};
byte destintaire[]={0,0,0,4,9};

On pourrait aussi bien écrire :

byte emetteur[]={0,0,255,0,27};
byte destintaire[]={0,124,0,1,14};

Et ça ne siginie pas les nombre 255027 ou 1240114, non, ça signifie à chaque fois 5 nombre differents compris en 0 et 255 (des bytes quoi)

 on: Today at 01:46:40 am 
Started by Dreamingworld - Last post by B@tto
Oui tu ne peux pas transformer comme ça un float en tableau de char, faut utiliser sprintf() :

char message[20];
float temperature = dht.readTemperature();
sprintf(message, "%f", temperature);
float monFloat=atof(message);

Pour le problème juste avant ce ne doit pas être le code exact que tu as utilisé, puisqu'il y a une erreur sur les noms des variables. De plus je ne sais pas si atof apprécie les espaces.

Corrigé :

char nombre[] = "18.254";
float monFloat=atof(nombre);

 on: Today at 01:44:09 am 
Started by vin89 - Last post by gpb01
@ vin89 :

Il cross-posting è proibito da regolamento (.... che evidentemente non hai letto). Hai già posto questa domanda QUI e ti è anche già stato dato un suggerimento !

Questo thread duplicato verrà presto chiuso o cancellato da un moderatore appena passa di qui ...


 on: Today at 01:42:33 am 
Started by JimB - Last post by Robin2
Hi Robin,   Nolan,s results showed consistent improvement  as quoted, all samples showed similar result so I would be confident that integrated result over continuous usage would be v v similar.

I guess I haven't explained myself very well.

I understand that the MPPT will deliver benefits at most sunlight levels.

What I'm trying to figure (hopefully with input from someone with practical experience) is how much of that extra can actually be used in a situation where the panels are being used to reduce the need for charging with a diesel engine.

To simplify a little, lets assume the battery needs to be near full charge every evening so it can supply power through the night. If there has not been enough sunshine the charge must come from diesel power. AND the battery needs to be near full charge in the morning in case there is inadequate solar power during the day - for example a day of heavy rain. That means that the battery may need a top-up diesel charge in the morning if the night time load was high.

Then if there is a lot of sunshine it is likely that the battery will not have sufficient spare capacity to take all the available current. In that situation adding an MPPT would have no benefit. And I think there is the opposite problem in winter - there is often so little solar output that for practical purposes I can't rely on it at all.

An obvious technical answer to this conundrum would be to increase battery capacity so there is a sink for the extra MPPT output but 30% extra output couldn't possibly pay for an MPPT controller and the extra battery capacity..

And, of course, the problem is that I don't have the facilities, space or capital to carry out back-to-back tests of two systems, one with an MPPT and one without - so I'm hoping someone else here may have some information that would be useful to me,

The idea of adding another solar panel rather than an MPPT controller seems to have a lot going for it, except that I don't have space for another panel.


 on: Today at 01:38:54 am 
Started by alainnamur - Last post by B@tto
Bizarre ... T'as essayé de reinstaller la lib ?

 on: Today at 01:33:27 am 
Started by DanBrookwell - Last post by DanBrookwell
Has anyone used the seeed music shield v2.0 that knows how to reference a single song on the sd? I'm looking for a way to call a specific file if a condition is met. As simple as it sounds I cannot find any example of this online or in the forums and my code is failing me so far. Of anyone knows of an operator or anything please let me know.

Pages: [1] 2 3 ... 10