Recent Posts

Pages: [1] 2 3 ... 10
1
Project Guidance / upload sketch
Last post by melsna - Today at 09:16 pm
i struggle to upload the "blink" sketch on the board.

it does verify  but when I tab "load" it give a message  error : i must choose the right board.

I tab on the Uno board  ( I have the monster kit) Yet nothing happens.

i choose the uno with the same results


NB: the screen only have tabs for verify  , load ,  and choose board. no  dropdawn box  for port or any other option.

I have deleted and loaded the program again , with the same results.


please help.
thank you

anselm
 
2
Deutsch / Re: Array mit Messdaten befüll...
Last post by postmaster-ino - Today at 09:14 pm
Hi

Anders herum wir ein Schuh draus!

Bei Deinem letzten Sketch guckst Du in JEDEM loop()-Durchlauf, ob neue Daten vorhanden sind.
Bei jedem 10000.ten Durchlauf kommt Da ein 'JAAA' raus - dieses Byte holst Du ab und sendest Das auch direkt an Dein Terminal.
Dann passiert wieder 9999 Durchläufe rein gar Nichts - ist ja auch Nichts Da, was abgeholt werden könnte.

In Deiner Schleife aber liest Du Daten, EGAL, ob Da Welche sind, oder nicht!!
Du prüfst, ob mindestens 1 Byte vorhanden ist - und liest dann 39 Byte ein.

-> StateMaschine
Wenn A gelesen wurde, Daten Empfang Aktiv
Wenn Daten Empfang Aktiv UND Daten verfügbar, das nächste Byte (nur EINS) einlesen und im Array positionieren.
Wenn wir dabei das 39.te empfangen haben, ist das Array fertig und kann weiter verarbeitet werden.

MfG
3
Software / Re: avanzamento prestabilito m...
Last post by Paparrabbiato - Today at 09:13 pm
Serve sapere a quale driver è collegato il motore e il codice che stai usando al momento, come pure librerie e uno schema di collegamento.

Contando il numero di impulsi che invii al driver si arriva già ad avere una indicazione.
Se il motore è un 200 passi e lo controllo in mezzo passo servono 400 impulsi per compiere 360° di rotazione.

C'è da vedere anche il rapporto di riduzione tra motore e vite senza fine.

Ciao.
Innanzitutto grazie per la diponibilità e la competenza.

Per rispondere al tuo primo capoverso devo chiedere perchè non so quale sia il driver suppongo un A4988 ma avendone diversi a diposizione nessun problema al cambiamento della configurazione elettronica.
Per quanto riguarda il codice e librerie sono presi da internet googolando "far muovere passo passo con due pulsanti". ma avendoli sul portatile non posso essere più specifico al momento cos come per lo schema che materialmente è in un'altra abitazione.

Per quanto riguarda il resto mi sei stato veramente molto utile. Queste informazioni mi mancavano e mi permetterebbero trovando un codice, che per inciso non sono capace di scrivere ma di certo mio figlio si, di regolare l'unità di misura.

Thanks

4
Project Guidance / Re: measure the speed of sever...
Last post by koronus - Today at 09:11 pm
How did you get FreqMeasure to work with a Due?
I have used this library with Uno but now I want to read the speed of three encoders and I want to use Due because of all of the digital pins of the Due board are interrupts, if I couldn't use this library please help how could I write a code to read the speed (even the position ) of three encoders,thanks
5
Yes - with line 80 in the code:

Code: [Select]

AccData.close(); Serial.println("File Closed");


I made a function which is causing me problems:

Code: [Select]

void writeToSD() {
if (i == 1) {
AccData.print("Sample");
AccData.print("\t");
AccData.print("ms");
AccData.print("\t");
AccData.print("gForceX");
AccData.print("\t");
AccData.print("gForceY");
AccData.print("\t");
AccData.println("gForceZ");
}
AccData.print(i);
AccData.print("\t");
AccData.print(sample_freq_ms*i);
AccData.print("\t");
AccData.print(gForceX);
AccData.print("\t");
AccData.print(gForceY);
AccData.print("\t");
AccData.println(gForceZ);
}


If I insert this in the void loop, instead of calling the function, then it works. I can't find the error.
6
General Electronics / 220V detector - again
Last post by guy_c - Today at 09:10 pm
I was interested in this subject because I wanted to implement easy roll back to manual of commands implemented with Arduino. For this I needed to use the 220V appearing in the electricity box when manually switching a wall switch for example. Here is the schematic and here a waveform with 330nF. I think that with 660nF the signal could go directly to a digital input. Hope this can be useful :)
7
Meaning for the COM Port?
No, I mean just what I said. Do you have the proper target board selected?



Compiles fine for me:
Code: [Select]
void setup() {
  Serial1.begin(115200);
  Serial1.println("Hello World");
}

void loop() {
}
8
Does you code really look like that ?
Did you read this before posting a programming question
[/quo


technically it does, but its one function and LED pattern in a multi pattern LED dance of sorts.
9
Sensors / Re: precision of analogread
Last post by DryDemon - Today at 09:05 pm
actually the output is from a transformer which is connected to my batteries. And I have a bms so no need to check for 52V.
The real problem is that the transformer block the power generated by my motors when I brake, which makes the breaking impossible.
But I bought 2 DTDP relays, so the goal is to check when I'm breaking to connect the motors dirrectly to the batteries, and then connect the motors back on the transformer

(When I'm breaking, the voltage goes up to 45.9V, so I just need to check the voltage to know if I'm breaking)

I need to use the aref pin?
10
Français / Re: Module Radio
Last post by iFrostizz67 - Today at 09:04 pm
Merci pour cette info!

Je ne l'utilise pas souvent (Il n'existe malheureusement que pour Windows)
par contre j'utilise  sans restriction
cette page pour une estimation du débit

celle ci pour l'estimation du 'budget'
celle-ci pour l'estimation de la sensibilité qui conditionne la portée


Ohh ! C'est pas mal ça !

Par contre je suis un peu perdu, j'ai vu que plus le SF était élèvé, plus la distance était longue mais à part ça, pas trop compris ... À priori, plus la sensibilité est élevée, et plus la distance l'est aussi, n'est ce que pas ? Mais comment en déduire cette distance ?
Pages: [1] 2 3 ... 10