Recent Posts

Pages: [1] 2 3 ... 10
1
Deutsch / Re: Meinen Arduino Code verste...
Last post by combie - Today at 01:23 pm
Quote
Doppelter Doppelpunkt ist kein Konstruktor? Sicher?
Aber sowas von sicher!
100%ig Sicher!


Ein Konstruktor ist eine Methode, welche ein Objekt eine Instanz für den Gebrauch vorbereitet.
Eine Methode! Also eine Funktion, mit einer Spezialaufgabe.

Das kann der :: nicht leisten!

Code: [Select]
class Test
{
  Test() // dieses ist die Konstruktor Deklaration und Definition in einem
  {
    // hier bereite die Instanz vor
  }

};




Code: [Select]
class Test
{
  Test(); // dieses ist die Konstruktor Deklaration

};

Test::Test() // dieses ist die Konstruktor  Definition
{
 // hier bereite die Instanz vor
}


Der :: dient also nur dazu, die Methode der Klasse zuzuordnen.
So teilt man dem Kompiler mit, was zusammen gehört.

------

damit meinte ich sowas:
> long a = 1000L * 88;
Ich vermute dass sich das nicht mehr in C++ ändern wird.
Das bleibt uns erhalten!
Für immer.

Bei der C++ Standardisierung wird scharf darauf geachtet, dass eine Rückwärtskompatibilität zu altem Code erhalten bleibt.
Bei einer Änderung an der Stelle würden sicherlich ganz erhebliche Seiteneffekte auftreten.

Unmengen alter Code würde versagen, oder nicht mehr das alte Verhalten zeigen.

------

Quote
Wenn ein Array ein Container ist bin ich aktuell noch mehr durcheinander.
Warum?
Ein Container ist eine Aufbewahrungsbox für irgendwelchen Kram.
Dasselbe ist ein Array!
Eine Aufbewahrungsbox für irgendwelchen Kram.

Ein Array ist ein Sonderfall eines Containers, weil es einen Index hat.
Das müssen andere Container nicht unbedingt haben.


2
If you are 25km from the nearest cell tower, how do you get Internet ?

3
Thank you for the reply, but this should not be a problem, since:

1- No data is expected to be sent from the SDcard/SlaveOut(SO) to the Arduino/MasterIN(MI) since no reading requests are  ordered by master.

2- As long a SS (aka CS) is not activated(low) nothing should be sent from the SD card SO to MI

3- Even if something is received by MasterIn, it will not pass the 'Keyword' validation check and will be just ignored and dumped.
4
Sensors / Re: HX711 with load cell Only ...
Last post by GolamMostafa - Today at 01:20 pm
Check your wiring first. Check using DVM (buzzer ON) that you have continuity between UNO and HX711 Module. Check that 5V and 0V have reached to the respective physical pins of HX711 chip. Now, upload this program which I have collected from the IDE.
Code: [Select]
#include "HX711.h"

HX711 scale;

void setup() {
  Serial.begin(38400);
  Serial.println("HX711 Demo");

  Serial.println("Initializing the scale");
  // parameter "gain" is ommited; the default value 128 is used by the library
  // HX711.DOUT - pin #A1
  // HX711.PD_SCK - pin #A0
  scale.begin(A1, A0);

  Serial.println("Before setting up the scale:");
  Serial.print("read: \t\t");
  Serial.println(scale.read()); // print a raw reading from the ADC

  Serial.print("read average: \t\t");
  Serial.println(scale.read_average(20));  // print the average of 20 readings from the ADC

  Serial.print("get value: \t\t");
  Serial.println(scale.get_value(5)); // print the average of 5 readings from the ADC minus the tare weight (not set yet)

  Serial.print("get units: \t\t");
  Serial.println(scale.get_units(5), 1); // print the average of 5 readings from the ADC minus tare weight (not set) divided
// by the SCALE parameter (not set yet)

  scale.set_scale(2280.f);                      // this value is obtained by calibrating the scale with known weights; see the README for details
  scale.tare();         // reset the scale to 0

  Serial.println("After setting up the scale:");

  Serial.print("read: \t\t");
  Serial.println(scale.read());                 // print a raw reading from the ADC

  Serial.print("read average: \t\t");
  Serial.println(scale.read_average(20));       // print the average of 20 readings from the ADC

  Serial.print("get value: \t\t");
  Serial.println(scale.get_value(5)); // print the average of 5 readings from the ADC minus the tare weight, set with tare()

  Serial.print("get units: \t\t");
  Serial.println(scale.get_units(5), 1);        // print the average of 5 readings from the ADC minus tare weight, divided
// by the SCALE parameter set with set_scale

  Serial.println("Readings:");
}

void loop() {
  Serial.print("one reading:\t");
  Serial.print(scale.get_units(), 1);
  Serial.print("\t| average:\t");
  Serial.println(scale.get_units(10), 1);

  scale.power_down();         // put the ADC in sleep mode
  delay(5000);
  scale.power_up();
}


5
Software / Re: nrf24l01 mandare dati solo...
Last post by gpb01 - Today at 01:17 pm
Buongiorno,
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. :)

Guglielmo

P.S.: Qui una serie di link utili, NON necessariamente inerenti alla tua domanda:
- serie di schede by xxxPighi per i collegamenti elettronici vari: ABC - Arduino Basic Connections
- pinout delle varie schede by xxxPighi: Pinout
- link generali utili: Link Utili
6
Why do you think adding "URGENT" in the subject line will be helpful? It may be urgent to YOU, but certainly not to anyone else on the forum. To the rest of us, seeing that is simply an annoyance. I guarantee that it will not motivate people to help you. In fact, it could have the opposite effect.
I think the real annoyance is to write a reply that's not helpful and out of the subject
It is really annoying to waste your time to mock someone for no reason
7
Hardware / Re: Controllo ventola di raffr...
Last post by gpb01 - Today at 01:16 pm
No, usa SOLO arduino, altrimenti un certo Guglielmo ti bastona.... dicendoti che questo non è  un forum di elettronica
... battuta inutile e fuori luogo.

L'OP ha aperto il thread volendo usare Arduino, quindi NON rientra nella condizione citata ... mostrargli che la soluzione può essere molto più semplice e che NON serve scomodare Arduno ... e neanche l'elettronica, basta la meccanica!

Guglielmo
8
Français / Re: Problème module RTC DS1307...
Last post by Pgea - Today at 01:14 pm
lepset :
 oui j'utilise précisément un de ces shields : https://www.mouser.fr/datasheet/2/737/adafruit-data-logger-shield-932859.pdf

fdufnews:
Oui une pile CR1220 comme indiquée sur le shield.

Merci de vos réponses.
9
Indeed, it's what I do when I release a new version. But you need an ICSP programmer for it.

Code: [Select]
void setup()
{
  Serial.begin(57600);
  Serial.print("Compile date: "); Serial.println(__DATE__);
  Serial.print("Compile time: "); Serial.println(__TIME__);
}

void loop()
{

}

Interesting idea never thought about it ! But does that required m keeping each single hex file tho>?
10
General Electronics / Re: Wind turbine Savonious Ch...
Last post by ted - Today at 01:13 pm
Make a picture what you see on oscilloscope.
Pages: [1] 2 3 ... 10