Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
Generale / Re: Sketch Arduino "Lampada in...
Last post by CoreZilla - Today at 03:13 pm
eccoti uno spunto

Code: [Select]


// Sezioni costanti / DEFINE
#define LDR_PIN       A0
#define TH_PIN         A1
#define INTERRUTTORE    3
#define THRESHOLD_ON   11
#define THRESHOLD_OFF   9
#define MAX_TEMP       50
#define DELTA_T        10
#define TURN_ON()      digitalWrite(INTERRUTTORE, HIGH)
#define TURN_OFF()     digitalWrite(INTERRUTTORE, LOW)

// dichiaro le variabili
int base;         // riferimento

void setup() {
   pinMode (LDR_PIN, INPUT);
   pinMode (INTERRUTTORE, OUTPUT);
   base = analogRead(LDR_PIN); // notare che rispetto a prima legge il valore una sola volta!
 }

void loop() {
int v = analogRead(LDR_PIN);
int t = analogRead(TH_PIN);

    // CONVERSIONE t in °C -- TODO

if ((base-v) > THRESHOLD_ON) {
if (t > MAX_TEMP)
    TURN_OFF();
else if (t < MAX_TEMP-DELTA_T)
TURN_ON();
} else if ((base-v) < THRESHOLD_OFF)
        TURN_OFF();

 }
22
Programming Questions / Re: Key management problems
Last post by BlindMonk - Today at 03:12 pm
#3
I checked your site, but I did not understand too much from your codes, probably because I am newbie. I would apriciate if you could tell me which part of which code is useful to my problem.

#4
I checked it but I do not understand all of the details. Plus this Serial thing is totally disunderstandable for me (I read how it is work tho)
23
Software / Re: Problema con scrittura cod...
Last post by CoreZilla - Today at 03:11 pm
.
24
hello everyone
at first, i want to say i'm not a native speaker english, so, sorry for my bad English( my English grade at school is not good)
i had a problem with TinyGPS++ and module gps neo m8n
i haven't change any setting in module by u-center, because i don't know how to use or change properly

if i hook the module with my pc by my uart-usb(sp2102) and use u-center, everything works well

if i upload example code(full device) in tinyGPS++ library, nothing work, this is what showing in monitor
Quote
FullExample.ino
An extensive example of many interesting TinyGPS++ features
Testing TinyGPS++ library v. 0.92
by Mikal Hart

Sats HDOP Latitude   Longitude   Fix  Date       Time     Date Alt    Course Speed Card  Distance Course Card  Chars Sentences Checksum
          (deg)      (deg)       Age                      Age  (m)    --- from GPS ----  ---- to London  ----  RX    RX        Fail
---------------------------------------------------------------------------------------------------------------------------------------
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   209   0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   988   0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   1732  0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   2476  0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   3347  0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   4193  0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   5047  0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   5894  0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   6764  0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   7616  0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   8448  0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   9194  0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   9940  0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   10686 0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   11516 0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   12378 0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   13221 0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   14083 0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   14937 0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   15809 0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   16649 0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   17414 0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   18158 0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   18902 0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   19742 0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   20578 0         2       
**** **** ********** *********** **** ********** ******** **** ****** ****** ***** ***   ******** ****** ***   21443 0         2
so, can anybody help me, thank you very much
25
Programming Questions / Re: standardizing a reading
Last post by Pauly - Today at 03:10 pm
What I do for my temperature sensor is take an average.
I take 10 readings say once every 5 minutes and just average them.

That way if I get any crazy numbers they are discounted.

Just use a for loop that takes 10 readings and add up all the readings.
Right after the loop divide the results by 10.
26
Generale / Re: Presentazioni nuovi iscrit...
Last post by Ocelot0991 - Today at 03:09 pm
Buongiorno,

sono uno studente in ingegneria Meccanica con la passione per la robotica e l'automazione. Avvicinandomi al mondo Arduino ho potuto finalmente cominciare a realizzare concretamente le idee che la mia testa dava alla luce. Purtroppo sono anche io in fase di apprendimento dato che il mio avvicinamento è stato abbastanza recente, spero di riuscire ad approfittare delle conoscenze dei membri più esperti, ma allo stesso tempo di riuscire a fornire anche il mio contributo lì dove ho già cumulato un pò di esperienza.
27
Bar Sport / Re: [OT ITA] Lo spamm bar
Last post by Etemenanki - Today at 03:08 pm
... Noel Gallagher ....
... who ? ...

(:P :D :D :D)
28
General Electronics / Re: LASER pulsing control
Last post by 123Splat - Today at 03:06 pm
405nm is probably not a diode pumped.  most likely a discrete diode. 
29
Bar Sport / Re: [OT ITA] Lo spamm bar
Last post by Etemenanki - Today at 03:06 pm
https://www.youtube.com/watch?v=fNu8inqIzTw

(al momento sono a corto di spam, accontentatevi, che poi faro' rifornimento :P :D)
30
If you can explain me why to use servo motor instead of Stepper motor? Then I could be able to talk with my supervisor about this.
Pages: 1 2 [3] 4 5 ... 10