Recent Posts

Pages: [1] 2 3 ... 10
Sensors / IR sensor: just one question.
Last post by squizzy91 - Today at 11:05 pm
I'm asking if theese kind of common sensors based on TCRT5000 have an output that is digital or analog:

If not, can you post some tiny IR sensor wic i've to use for measuring IR reflectance of surfaces.

Deutsch / Re: LED strip WS2812B funktion...
Last post by Helmuth - Today at 11:04 pm
@TobzTob: Häng ein Oszi ran und schau Dir die Spannung unter Last an. Gehe danach ein geeignetes LED Netzteil kaufen.

Wenn Du keinen Oszi zur Verfügung hast, dann kaufe gleich ein geeignetes LED Netzteil.
Programming Questions / Re: Greater than "time"
Last post by Paul_KD7HB - Today at 11:04 pm
What does your current program do with the motor? Does it run and stop? The rest should be easy.

Software / Re: Problema comunicazione blu...
Last post by luis67 - Today at 11:04 pm
quando al mio modulo bluetooth inviavo un messaggio, fissavo un carattere terminale, supponiamo nel mio caso il carattere '&', quindi scrivevo questo codice, ovvero se il carattere letto è diverso da questo carattere finale, vuol dire che non sono arrivata alla fine del messaggio, quindi devo accumulare i char letti nel messaggio (String msg), ovvero  msg += toSend , se invece sono alla fine, perché ricevo &, allora eseguo quello devo fare con la funziona esegui che prende in input il messaggio totale letto e resetto il messaggio (msg="")
Code: [Select]

String msg;
char toSend;
if (bt.available())  {      //Read from bluetooth and write to usb serial
      toSend =;

      if ( toSend != '&')    msg += toSend ;
      else if ( toSend == '&' ) {    // con il char '&' termina il messaggio ricevuto
        esegui(msg) ; 
        msg = "" ;

Programming Questions / Re: Greater than "time"
Last post by hichhiker - Today at 11:04 pm

Is there a way where I can control an action whit a given time?

What I am trying to do is to stop a motor when the end stop has been pushed for 1 second.

Code: [Select]

if ((motorRunLeft == 1) && (endStopSwitch == 1 >1000MS)){

motorRunLeft = 0;


This will probably not work, but is there a way to do something similar?
If I understand you correctly, just set a variable to millis() when the event starts and the check if (millis() - DURATION) is less than start time.  You want to subtract here instead of add because if you hit millis() overflow,  subtraction will be less likely to break (there is a note in the pinned post about that somewhere)

Français / Re: Lire bluetooth Ecrire SD c...
Last post by dany93500 - Today at 11:03 pm
Merci Kamill,
je vais essayer de faire ce que tu me dis.
entre temps j'ai pondu ça :

Code: [Select]
void loop() {
  String s;
  String g;
  String x;
  fichier ="BBB.txt", FILE_WRITE);
  while (bluetooth.available())
    char c =;
    if (c == '\r')
      c = '\n';
    g = s + c;
    x = g + '\r';

Le code fonctionne mais il me paraît très alambiqué, voire extrêmement lourdingue..
Programming Questions / Re: Greater than "time"
Last post by Southpark - Today at 11:02 pm
You sure can.

Use the time features of the arduino software.

Look up millis() and micros() functions.

Set some variables.... like a variable for the present (current time).

If you use millis() ... then millis() gives you the current number of milliseconds since the arduino first started running.

So use that time for reference...

eg ...   reference_time = millis();    

It doesn't mean time of day. It just means number of milliseconds that has been clocked up since arduino started running.... since power-on.

Then add 1000 to it... ... ie 1000 millisec is 1 sec.

Then in your loop....  

if (millis() - reference_time >= 1000)
code for stopping the motor ;
Deutsch / Re: LED strip WS2812B funktion...
Last post by HotSystems - Today at 11:01 pm
Die billigen, die ich kenne, schneiden einfach mit einer (!) Diode jede 2. Halbwelle ab...

Die besseren haben einen Brückengleichrichter und einen kleinen Elko zum Stabilisieren. Wenn man da ein paar 100 mA fließen, geht das klar. Bei Vollast geht das nicht klar, weil die Restwelligkeit zu hoch ist.
Ja, ok. Da stimme ich dir zu.

Da ich nie das billigste nehme, mag das bei mir funktionieren. Auch mit größerem Strom für Leds.

In jedem Fall ist das von dir gezeigte Netzteil für den TO die richtig Wahl.
Project Guidance / Re: Ardunio as an accurate low...
Last post by Godot11 - Today at 11:00 pm
Ok. So the last (or last-but-one, followed by an Instructable some hundred years later) update, as I tricked myself into writing the frequency control code.

A video of the strobe working:

Bar Sport / Re: Atmel is history ...
Last post by westfw - Today at 10:59 pm
Did PIC start with the 8051?
No, I don't think so.  A "competing" architecture from a different company (General Instruments vs Intel), from about the same timeframe.  Similar issues when it comes to C.  When Microchip took over the PICs, they really ran with the "smaller pin count" variations, which for some reason never caught on as much in the 8051 family (there ARE (now) a bunch of low-pin-count 8051 chips, but ...)

I think SDCC (which is an OSSW C compiler that supports 8051) also supports at least some of the PIC chips.  No C++, though...
Pages: [1] 2 3 ... 10