Recent Posts

Pages: [1] 2 3 ... 10
1
Project Guidance / Re: [BEGGINER]
Last post by dave-in-nj - Today at 07:03 pm
Learning how to do things is part of the adventure.

I would look at crossroads site 
http://www.crossroadsfencing.com/BobuinoRev17/

about half way down,  the max7219
this can control 64 led's one at a time.
and yes, one arduino can control multiple units 
2
Français / Lecture signal radio DCF77
Last post by Rudyk - Today at 07:01 pm
Bonjour,

Je souhaite pouvoir mettre à l'heure l'horloge interne de l' ARDUINO, avec un petit module DCF77 qui fournit la trame du signal radio  (série d'impulsions).

Configuration:

MAC OSX (10.11.6)
Carte ARDUINO UNO (1.8.4)
Platine câblée de réception DCF + antenne,
sortie transistor collecteur ouvert, (donc + Résistance pullup 10K).

Je vois très bien le signal en sortie du module avec un oscilloscope.

Sortie du module DCF sur Pin 2 Arduino (interruption 0).

Je détecte également le signal sur l'Arduino avec le petit programme "DCF signal" des exemples fournis avec les librairies DCF77 que j'ai téléchargées.(Thys Elenbaas 2012).

"InternalClockSync" doit permettre la mise à l'heure de l'horloge interne de l'Arduino.

Code: [Select]


/*
* InternalClockSync.pde
* example code illustrating time synced from a DCF77 receiver
* Thijs Elenbaas, 2012
* This example code is in the public domain.

 This example shows how to fetch a DCF77 time and synchronize
 the internal clock. In order for this example to give clear output,
 make sure that you disable logging  from the DCF library. You can
 do this by commenting out   #define VERBOSE_DEBUG 1   in Utils.cpp.
 
 NOTE: If you used a package manager to download the DCF77 library,
 make sure have also fetched these libraries:

* Time

A package that includes all referenced libraries can be found at:
https://github.com/thijse/Zipballs/blob/master/DCF77/DCF77.zip?raw=true  
 
*/

#include "DCF77.h"
#include "Time.h"

#define DCF_PIN 2         // Connection pin to DCF 77 device
#define DCF_INTERRUPT 0 // Interrupt number associated with pin

time_t time;
DCF77 DCF = DCF77(DCF_PIN,DCF_INTERRUPT);


void setup() {
 Serial.begin(9600);
 DCF.Start();
 Serial.println("Waiting for DCF77 time ... ");
 Serial.println("It will take at least 2 minutes until a first update can be processed.");
}

void loop() {
 delay(1000);
 time_t DCFtime = DCF.getTime(); // Check if new DCF77 time is available
 if (DCFtime!=0)
 {
   Serial.println("Time is updated");
   setTime(DCFtime);
 }
 digitalClockDisplay();  
}

void digitalClockDisplay(){
 // digital clock display of the time
 Serial.print(hour());
 printDigits(minute());
 printDigits(second());
 Serial.print(" ");
 Serial.print(day());
 Serial.print(" ");
 Serial.print(month());
 Serial.print(" ");
 Serial.print(year());
 Serial.println();
}

void printDigits(int digits){
 // utility function for digital clock display: prints preceding colon and leading 0
 Serial.print(":");
 if(digits < 10)
   Serial.print('0');
 Serial.print(digits);
}

Code: [Select]



Pour éviter une erreur de compilation j'ai remplacé #include<Time.h> par #include<TimeLib.h>.

A l'exécution du programme l'heure n'est jamais mise à jour; la date reste fixée au 1 janvier 1970 !

Je ne trouve pas de solution, les conseils seront les bienvenus.
Merci d'avance.
Rodolphe.
3
Generale / Re: Costruire un braccio mecca...
Last post by Thai90 - Today at 07:01 pm
Ma che sensori devi testare?
Ciao Uwe
mouse, sia ottici che laser
4
What kind of board are you uploading it to?
5
Then use your senior's code.

Do let us know how well it works.
6
I've been to NYC computer store. There's so many unsold beagle bone, raspberry pi, adafruits, seeed, Arduinos, Neuron Robotics, etc sitting there for four years.  Big cities heard about Youtube, Iphone-X, Nintend Switch, Xbox One s, self driving cars. But not IOT, Internet of Things, smart homes.

 Any ideas what causes big cities to stop buying Arduino, pi, etc?
7
General Electronics / Re: Voltage is dropping, why?
Last post by septillion - Today at 07:00 pm
So, you have a 1A supply and want to draw 1,6A?
And a linear regulator that needs to convert the rest (12,8W!!!) to heat?

And you're surprised


And you use Neopixels, not just normal leds. Aka, devil is in the details. Give us schematics, code, type details etc and we can give you useful answers and tips. If you don't, it's just a wild guess.
8
Something is missing from what is clearly supposed to be your setup() function...
9
Displays / Re: U8G2 with Two SSD1306 OLED...
Last post by Antrix - Today at 07:00 pm
Any suggestion would be of great help!
10
Deutsch / Re: enc28j60 und DS18B20
Last post by dennis1005 - Today at 06:59 pm
Dann lies dir deinen Sketch nochmal durch.
Du liest 3 mal einen DS18B20 aus, obwohl du von 2 schreibst.

Danke da hast du recht, habe ich geändert, löst aber leider das Problem nicht
Pages: [1] 2 3 ... 10