Recent Posts

Pages: [1] 2 3 ... 10
1
Generale / Re: due lm35 comandano un serv...
Last post by Patrick_M - Today at 11:41 pm
però ho dato un'occhiata al programma che hai postato al post #30 (inizio di questa pagina)

alla riga   17 trovo:#define PhotoSensor     A0 
alla riga   20 trovo:#define sensorefiamma A0 PIN A7   (che francamente non capisco cosa significa)
alla riga   57 trovo:int flame_ain = A7;
alla riga 153 trovo:int sensorPin = A0;

alla riga     9 trovo:#define LampRed3         4

alla riga 21 trovo:#define sensorefiamma D0 PIN 23   (come sopra)
alla riga 21 trovo:int flame_din = 23;

alla riga 22 trovo: #define BUZZER               22
alla riga 42 trovo: const int buzzerPin = 22;

alla riga   8 trovo: #define LampRed2         3
alla riga 43 trovo: const int lampRed2 = 3;

alla riga  8 trovo:#define LampRele2        7
alla riga 55 trovo:int rel = 7;
alla riga 148 trovo:int relay = 7;


questa poi è una delle migliori :)
int analogPin5 = A9; // Pin Analogico A9


poi nel setup cose come:
riga 259:    pinMode(rel, OUTPUT);         //relè                     ->riga  55 = pin 7
riga 283:    pinMode(relay, OUTPUT);     //rele' 1 per ventola->riga148 = pin 7

riga273:     pinMode(4, OUTPUT);                 //Led Allarme (Rosso) 
riga 276     pinMode(LampRed3, OUTPUT);    //LED ROSSO  (Allarm) -> riga9 =pin 4


dovresti proprio ripulirlo e usare 1 variabile sola per ogni cosa....
2
Programming Questions / Re: Programming questions
Last post by Dimitris1993 - Today at 11:40 pm
Code: [Select]
    delay(20000);

No surprise

See Using millis() for timing.  A beginners guide,   Several things at the same time and look at the BlinkWithoutDelay example in the IDE.
I stragled for some hours because I used the millis() for a first time but I did it. The on and off states works nice. Now the last thing I need is to remove a null number from ph measurements and I m good to go.
3
Project Guidance / Re: Is any way to use analog p...
Last post by RipperR - Today at 11:39 pm
al exmples with reading dc fan speed as i see done at Digital pins .... so i have ask ... so at my senario there is no difference between D pins and A pins ... Am I right ?
4
As Paul_KD7HB said, I think your approach is orders of magnitude away from what you need.

The repeated reference to "wall warts"  tells me you don't have a feeling for the amount of power you need.

I suggest you look through a catalog of DC solenoids and see the amount of power needed to create force under optimum physical conditions.   Now consider that an electric field is reduced by the cube of the distance from the actual coils to the object you are attempting to move.

Now you said you wish to move 3 lbs 1 foot.  Look at the solenoids for force and stroke length.  You will find the typical stroke (i.e. movement) is far less than your desired 1 foot.


Next pickup up your wall wart (or any wall wart)  look at the amps it is capable of........ compare it to the current the solenoids you might find......see if you are close.


John
5
Really? Take out the print statements, add an if test/break on flag and there's not much left:
Oops.  I meant "Slightly simpler than my previous attempt." not comparing my solution to yours.  Sorry for the misunderstanding.
6
Project Guidance / Re: Blynk vs power outages
Last post by pert - Today at 11:36 pm
Just keep working on the EEPROM until you figure it out. For this application, it's the best solution. It's really not so confusing. You can find examples under File > Examples > EEPROM, tutorials that go with the examples at: https://www.arduino.cc/en/Tutorial/LibraryExamples, and documentation here: https://www.arduino.cc/en/Reference/EEPROM. If you get stuck then come back here with details and we'll help you out.
7
Sensors / Re: Thermocouple connection
Last post by jremington - Today at 11:33 pm
Quote
Uh, that looks like a capillary bulb thermostat to me
It is in fact an "universal gas furnace 30 mV thermocouple", which you can buy here.

8
Programming Questions / Re: What use is y=x++
Last post by boolrules - Today at 11:32 pm
Simple use case (maybe contrived):
Code: [Select]

void Aopen( byte* P, byte END, byte START ) {
    // open one space in an array from [START] to [END]
    int src;
    int des;

    for( des = END + 1, src = END; des > END - START - 1;  des = src-- )    // math here
        P[des] = P[src];                                                    // no math here

    P[des] = 0;
}
9
Without seeing all the code (in code tags please), I can't even guess what is going on.
10
Project Guidance / Blynk vs power outages
Last post by itay5731 - Today at 11:31 pm
So I'm writing a code using blynk that turn off/on a simple led (I managed to do that) but If there is a power outage I want to keep that state the led was so when the power comes back it will have the same state like before.
I tried using EEPROM (I'm a beginner btw) and it's way to confusing for me so I gave up, then I tried using latching relay but apparently when the power comes back it's sends a little pulse that resets the latching relay just like a regular relay.
If anyone can write me a simple code how to overcome power outages using blynk,or guide me on what to do to achieve my goal here that will be great.
Thanks in advance for any one who took their time
to help me
Pages: [1] 2 3 ... 10