Recent Posts

Pages: [1] 2 3 ... 10
1
I believe @pert has answered your questions.  I don't think I ever tried with a ProMicro but I have had no trouble using an nRF24 on a Leonardo which is similar.

...R
2
already tried Serial1 , 2 and 3, no result
3
Project Guidance / Re: Coin Count Machine
Last post by wvmarle - Today at 10:48 am
Add a break beam sensor to each individual output and start counting. No doubt those coins will be spit out one by one.
4
Puri Amanvilas provides lots of facilities like landscaped parks, wide internal roads, cycle tracks, solar panels for street lights, swimming pool, gym to Puri Amanvilas peoples.
Lot of puri Amanvilas floor construction complete. Due to its connectivity and construction quality price of this project day by day increase. When this project launched then price of  265 sq. Ds starts from 45 lacs but now price starts from 52.95 lacs.
5
There is no need to use SoftwareSerial on a Mega as it has 3 spare Hardware Serial ports. Use pin 18 and 19 as Serial1

...R
Serial Input Basics - simple reliable ways to receive data.
6
Project Guidance / Re: need physically Small powe...
Last post by wvmarle - Today at 10:46 am
The resistor for 85-20V is a bad idea for more reasons than heat alone: if your current draw is not 70 mA but just 10 mA (it will vary that much depending on which components are active) your 65V drop becomes a 9V drop, and you may fry your linear regulator. On the other hand the resistor will be too large to handle even a 200 mA peak.

What you need is a buck converter, not a linear converter. Otherwise there's the power issue as pointed out above. They indeed can get quite small. A quick search turned up this little guy takes up to 55V on the input, and produces 5V on the output.
7
LEDs and Multiplexing / Re: Reactive Piano LED Strip
Last post by vibhu18 - Today at 10:43 am
There's another approach, what about controlling the LEDs with the pitch of the sound.
You can do it like this. Get an electrolytic microphone. connect it with A0 pin of Arduino(any board). then use the library open music lab ,it consists of FHT library which perfectly samples the incoming signals and puts them into different frequency bins and then uses Fourier Hartley Transform to sample the signal into different frequency bands.

so you can program your  Arduino using this library in such a way that different colors glow at different frequency bands.

Next step is controlling LED strip from Arduino. For this, you can use IRL540(recommended) or IRF530 for better current amplification and switching. You can also use this module https://shop.controleverything.com/products/8-channel-8w-open-collector-fet-driver for the same purpose

8
Microcontrollers / Re: ESP32 and MPU9250 for flig...
Last post by seurat - Today at 10:42 am
Look here: https://github.com/rtlopez/esp-fc
rtlopez is using an MPU6050 but it's a starting point.

Also look here:  EM7180_SENtral_sensor_hub/EM7180_MPU9250_BMP280.ino

Fly safely!
9
What sort of servo are you considering which is more expensive than a stepper motor and stepper motor driver?

A diagram of the mechanism you are planning to make would be a big help.  See this  Simple Image Guide


...R
Stepper Motor Basics
Simple Stepper Code
10
Deutsch / NODEMCU / ESP8266 und deepSlee...
Last post by uk1408 - Today at 10:42 am
Hallo,

ich möchte mit einem NODEMCU bzw. ESP8266 regelmäßige (alle 60 Sek.) Messungen machen. Zwischen den Messungen soll er schlafen um Strom zu sparen. Nach 60 Messungen sollen die Messwerte via GSM übertragen werden. Klappt so weit auch, allerdings sind mir die Zeitabstände nicht genau genug. Statt 60 sind es nur ca. 58 Minuten.
Zum testen habe ich mal einen Sketch ohne alles drumherum gemacht.

Code: [Select]

unsigned long nSleepZeit = 60000000;             // 1 Minute

// --------------------------------------------------------------------
void setup()
{
  Serial.begin(74880);


  for (int j = 0; j < 100; j++)            // macht etwas
  {
    delay(100);
  }
  nSleepZeit = nSleepZeit - micros();        // bisherige Laufzeit Programm


  Serial.println("Schlafen für " + String(nSleepZeit / 1e6, 5) + " Sekunden");
  ESP.deepSleep(nSleepZeit);
}
// --------------------------------------------------------------------
void loop()
{
}


Die Schleife soll 100 Messungen zu je 100 mS simulieren. Diese Laufzeit(ca. 10 Sek.) wird mit micros() erfasst und von der vorgegebenen SleepZeit abgezogen. Aber so komme ich nur auf ca. 57,5 Sekunden Abstand.

10:17:38.165 ->  ets Jan  8 2013,rst cause:2, boot mode:(3,6)
10:18:35.655 ->  ets Jan  8 2013,rst cause:2, boot mode:(3,6)
10:19:33.230 ->  ets Jan  8 2013,rst cause:2, boot mode:(3,6)

Wenn ich die Schleife und die Zeile mit der micros()-Korrektur auskommentiere sollten es ja 60 Sek. SleepZeit sein. Aber auch dann stimmt es um knapp 1 Sek. nicht.

10:35:30.992 ->  ets Jan  8 2013,rst cause:2, boot mode:(3,6)
10:36:30.139 ->  ets Jan  8 2013,rst cause:2, boot mode:(3,6)
10:37:29.406 ->  ets Jan  8 2013,rst cause:2, boot mode:(3,6)

Ist dieses deepSleep() so ungenau oder habe ich einen Denkfehler? Hat da jemand Erfahrung damit?


Pages: [1] 2 3 ... 10