Recent Posts

Pages: 1 ... 6 7 [8] 9 10
71
Displays / Re: Temp and hum on 2line lcd
Last post by heninsh - Today at 07:58 am
Hi !

Quote
and ive got an 4 pinned lcd screen
Please post more information about your display ! ;) Is it LCD 16x2 with I2C?

Code: [Select]
 

if (DHT.temperature < 30)
    digitalWrite(CH1, HIGH);        // If so, turn on the relay.
else
    digitalWrite(CH1, LOW);        // Otherwise, turn the relay off.
    delay(2000);
if (DHT.temperature > 30)
    digitalWrite(CH1, LOW);        // If so, turn on the relay.
else
    digitalWrite(CH1, HIGH);        // Otherwise, turn the relay off.  

if (DHT.humidity > 70)
    digitalWrite(CH2, LOW);        // If so, turn on the relay.
else
    digitalWrite(CH2, HIGH);        // Otherwise, turn the relay off.
    delay(2000);
if (DHT.humidity < 70)
    digitalWrite(CH2, HIGH);        // If so, turn on the relay.
else
    digitalWrite(CH2, LOW);        // Otherwise, turn the relay off.

}

 


This will be the same :D

Code: [Select]


if (DHT.temperature < 30)
    digitalWrite(CH1, HIGH);        // If so, turn on the relay.
else
    digitalWrite(CH1, LOW);        // Otherwise, turn the relay off.
    delay(2000);

if (DHT.humidity > 70)
    digitalWrite(CH2, LOW);        // If so, turn the relay off.
else
    digitalWrite(CH2, HIGH);        // Otherwise, turn on the relay.
    delay(2000);



p.s. DHT11 is not good sensors. I have an expirience with this!
72
Project Guidance / Re: Question About Removing Tr...
Last post by hawleycj - Today at 07:58 am
Your application uses a stepper motor with a STEP/DIR input signal. Any application that has those two things in common should be using the Accelstepper Library.

It was written for things like 3D printers.Have a look at the SYNTAX for the Basic Usage
Cool.  This is all coming full circle for me.  I am well aware of how 3D printers use the accel/decel functions to minimize "ringing" in the prints and also help extend the longevity of the hardware.

Have a look at the Speed Based Control section in the above link.
Will do.

This library is where I first learned about the 'dot separator' in functions like this:
Code: [Select]
mystepper.setMaxSpeed(stepsPerSecond);

It's probably so basic for you that you never think about it but I'm a H/W person and I have to learn S/W by trial and error and research.
Finally, you failed the turing test.  Having read that "dot separator" comment, I now know that you are human and not some omniscient android.  Now I will feel like slightly less of a dumbass when conversing with you.

And you are correct: the programming part (especially what you just mentioned) is mostly very basic for me.  So I am in the exact same boat with hardware as you are with software, but I am slowly grasping the basics.

Edit: Oh yeah, this AccelStepper class is exactly what I need.  I would have ended up making all of the functions in that class myself, but now I can just integrate it into my code and save myself a some time.

Edit^2: I love this stuff!


73
Having a chip capable of 24 bits operation and actually achieveing that are two different matters. It is hard to actually get that sort of resolution because of noise.

What about the signal do you want to analyse? You might want more than two samples per cycle.
74
How is it connected to your printer? Which power are you referring to (Arduino or printer)?

Do the LEDs light when not plugged in to printer?

Weedpharma
75
Look for the digitalWriteFast library. That speeds things up a lot.

Here may be a link (not sure if it is the latest): https://code.google.com/archive/p/digitalwritefast/downloads
76
Humor y Debate / Re: Ya es oficial: atmel ha si...
Last post by victorjam - Today at 07:51 am
De todas las posibilidades que pueden ocurrir, se me viene a la cabeza, es que se unan las cosas buenas de ambas marcas y saquen un producto muy bueno. Lo malo, es que descatalogen productos y nos dejen sin nuestros micros favoritos. Esperemos que eso sea muy, muy lejano.
77
Software / Re: Messaggio Impossibile
Last post by torn24 - Today at 07:49 am
Vorrei aggiungere, che non bisogna dare per scontato che se compri qualche kit tutti i componenti siano perfettamente funzionanti, diciamo che semplici componenti come resistenze,led,transistor.. è abbastanza probabile che non diano problemi  :)  ma mi è capitato di trovare componenti bacati e prima di capire che il problema era il componente ci ho perso molto tempo  :)

Off topic
Vorrei fare un affermazione, ma non voglio certamente accendere animi di qualcuno, quindi se i moderatori ritengono inopportuno, prego di cancellare questa parte del post.

In risposta a una tua affermazione...
Io ritengo che ciò che si fa da soli e solo con le proprie forze, sono le cose che danno maggiori soddisfazioni e gratificazioni "e io tendo a fare tutto da solo", ma le GRANDI COSE, non sono alla portata del singolo, ne storicamente, ne attualmente, occorrono molte competenze per realizzare una singola opera, e occorrono a volte centinaia di anni uomo per essa, e si riesce a farla in "pochi anni" solo per che si collabora, pensa a costruire una nave da solo, avendo tutte le competenze, se 100 uomini impiegano 5 anni, da solo ne occorrerebbero 500, ma per avere tutte le competenze necessarie servirebbero anche molti anni... :)
79
I have NO idea what you're talking about but I know how to use Google and I can read:



Glass Transition Temperature


Quote
If working temperature of your product is higher than normal (130-140C), then have to use high Tg material which is > 170C. and popular PCB high value are 170C, 175C, and 180C. Normally the PCB Tg value should be at least 10-20C higher than working temperature of product
Now stop and think about it for a second. If the arduino was manufactured for hobbyists, would they need a glass temperature of 170 degrees Celsius ? Does that sound even REMOTELY necessary for a hobbyist environment or application ? Do you have to be a rocket scientist to figure that one out ?
80
Quote
I am curious as to why you think it was created specifiy for my "kind of applications," even though I havent specified my application.
Your application uses a stepper motor with a STEP/DIR input signal. Any application that has those two things in common should be using the Accelstepper Library.

It was written for things like 3D printers.
Quote
You can create multiple AccelStepper objects, giving a unique name to each motor. AccelStepper can manage any number of motors, as long as you repetitively call their "run" functions. 
Have a look at the SYNTAX for the Basic Usage

Quote
I may need to speed this sled up and slow it down gradually, though, so I may end up using the AccelStepper library (that is what it is for, correct?).  
Have a look at the Speed Based Control section in the above link.

This library is where I first learned about the 'dot separator' in functions like this:
Code: [Select]
mystepper.setMaxSpeed(stepsPerSecond);

It's probably so basic for you that you never think about it but I'm a H/W person and I have to learn S/W by trial and error and research.
Pages: 1 ... 6 7 [8] 9 10

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy