Recent Posts

Pages: [1] 2 3 ... 10
Generale / Re: Pallottoliere Analogico pe...
Last post by gpb01 - Today at 06:47 pm
essendo il tuo primo post, nel rispetto del regolamento della sezione Italiana del forum (… punto 13, primo capoverso), ti chiedo cortesemente di presentarti IN QUESTO THREAD (spiegando bene quali conoscenze hai di elettronica e di programmazione ... possibilmente evitando di scrivere solo una riga di saluto) e di leggere con MOLTA attenzione il su citato REGOLAMENTO ... Grazie. :)

Deutsch / Re: Daten mit PC empfangen und...
Last post by ThePhil - Today at 06:47 pm
Hallo Forum,

Grundlage ist, dass ich in dem Arduino einen Punktestand berechne. Diesen will ich
anschließend in einer Textdatei zwischenspeichern um ihn dann in die
Access-Datenbank einlesen zu können. Dabei muss die Textdatei ständig aktualisiert

Gibt es von euch Lösungswege oder Erfahrungen wie das am besten gemacht wird ? 
Project Guidance / Re: Adafruit Motor Shield
Last post by Vampyrewolf - Today at 06:45 pm
1. It is a single shield to plug into your Arduino without having to wire up discrete components.

2. It comes with a library.

3. The Adafruit shield in particular allows many shields to be stacked and addressed individually.

4. It is cheaper for the manufacturer to buy components in bulk so the final cost is less than you can buy the parts for.
1. I understand the value in plug-n-play with the UNO or MEGA. If you are driving that shield with and UNO or MEGA, then using that form factor for prototyping would be beneficial. However, in trying to minimize the space requirement, I'd rather go the route of using discrete components (if I had the electronic/programing know-how).

2. The only point I would argue here is if I were using an Arduino in any form with 3 Mosfets, I wouldn't have to use any library. I do think it's pretty cool that the Adafruit people wrote a solid library base for their shield though!

3. Very handy if I had space and needed to control various motors in this fashion. Maybe this is where the value tipping point exists. I would assume that it would be easier to use multiple shields than extraneous components. I dunno....I still missing a ton of experience in this area.

4. This surprises me. The Adafruit Motor Shield "kit" is just the shield itself, priced at 19.99 (no motors included). If I'm just powering 3 motors for example, I would need 3 Mosfets (I think). Are mosfets typicall expensive? My thought was that I could buy a smaller Arduino (Micro), 3 Mosfets and a proper power supply and that should cover it. Where is the price savings?
what I'm thinking is that since the PIR sensor can only detect movement but can't detect the direction of movement ( in this case moving in or out of the room ), I'm making it so that the sound sensor would be the one to tell if a person is moving in or out by listening to any sound  that person made when entering, like their  footstep sound.

After the PIR sensor detect a person moving, arduino will turn on a pin for a duration of time and let the sound sensor try to listen to any sound that person make.

If the sound sensor fail to detect any sound in that duration of time then the arduino will turn off the pin like it supposed to since it's only stay on for a certain duration. But if the sound sensor able to detect any sound in that duration of time, instead of turning the pin off, it will give arduino a new command to keep the pin on.

Basically, the sound sensor doesn't wait for the pir to complete it's entire on/off sequence. If the sound sensor can detect any sound, it will interrupt the off sequence from the PIR sensor, and change it to on, or make a new on sequence

Software / Re: Comando deciso da Arduino
Last post by Silente - Today at 06:44 pm
Dipende da su che base deve scegliere che comando dare. Può essere una scelta casuale, che potrebbe prendere la forma di una switch case in cui la variabioe é presa random (usando la funzione random() e amiche o altre apposite). Oppure la scelta può dipendere da altri fattori (ora, timer, sensori, presenza di altre uscite...) nel caso va scritto un programma che lebtenga in considerazione
Deutsch / Re: Digitalpotentiometer in ei...
Last post by DrDiettrich - Today at 06:43 pm
Funktioniert das Poti denn mit 1,2k?
Usual is to put the class declaration into the header file (which can be made available to other compilation units) and the definition into the cpp file then it is clear.

I think by 'inline' here, you mean combining the declaration and the definition in one file.

There are lots of discussions about this eg:
Project Guidance / Re: get crank angle
Last post by Robin2 - Today at 06:41 pm
I think this is how I would do it
Code: [Select]
void myPulseIsr() {
    timeOfPulse = micros();
    prevPulseInterval = pulseInterval; // save the preceding value
    pulseInterval = timeOfPulse - timeOfPrevPulse;
    if (pulseInterval > (prevPulseInterval + prevPulseInterval >> 1) { // compare to prev * 1.5
        longPulse = true;
        longPulseTime = timeOfPulse;
    newPulse = true;
    timeOfPrevPulse = timeOfPulse;

NEVER use division where speed matters as it is very slow >>1 is the same as /2 but very much faste


Sorry if it seemed like I was buying cable. I want to plug 2 arduinos into existing CATx and talk to each other. 8 DI/O on each end.

It is just to test the cable itself (installed or on spool), so low data rate/slow comms are fine. I'm also old enough to admit not remembering differential signaling, though doubtlesslydoubtlessly taught it in school. Great call, and perfect for TP. Thanks!

I'll now look up DC resistance of CATx, and ponder what else I've forgotten... :)

This seems to have fixed the problem, but do you know if this is just an unreliable fix?
That depends on how often and defined the values on the radio side arrive. If you can ensure that no radio communication happens while the Arduino is sending values to the FONA it might work reliably. If you can't ensure that it might fail any time.
Pages: [1] 2 3 ... 10