New answers tagged

1

I think it is because of power consumption. If the LEDs consume lots of power, the LED on Arduino(typically mini red LED) will be off or faded. So before you connect the LEDs, check the mini red LED which is on Arduino and after connection the LEDs, check ones again. If the red LED is faded or off, the problem must be power consumption. Connect 12v or 5v ...


3

On the AVR platform the char type happens to be signed, and it can store numbers in the range [−128, +127]. Thus, when you write char bar = 128; You are asking to store in bar a number that does not fit. It then gets reduced modulo 28 into the value that does fit, namely −128. For the kind of manipulations you are trying to make, I would recommend you use ...


0

After going through a lot of documentation, it seemed best and more efficient to attach the interrupt without functions. EIMSK |= (1<< INT0);//Attaches the interrupt MCUCR |= (1<< SM1) //Power-down mode | (1<<ISC01) //The rising edge of INT0 | (1<<ISC00);// generates an interrupt request


0

I was facing same issue, now my problem is solved here. This problem mostly occurs when we apply a power supply to the MCU that has capacitors at its output. This type of power supply's rising voltage is like you can see the image: If you look at the data sheets of MCUs, you see that most MCUs can work at 1.8V to 5.5V. Here the rising voltage is slow; the ...


1

The problem is the ESP8266-01 as diagrammed is shorting the pins of the header. Remember that the breadboard you are using connects all pins on each side, on a row by row basis. The WiFi module has 8 pins with the pinout shared in other posts. You must "float" the module and wire it to the breadboard with point to point wiring (hope that is ...


0

Sim800 series free Atcommander software. http://bayanbox.ir/info/3493267131357723232/ATcenter


1

In addition to some of the above comments; Your Nano may not support the watchdog. Please check This post on the Arduino forum If you are looking for "There are many small programs..." I'll just post the functions I use for getting free memory, heap and stack information below. int freeRam() { extern int __heap_start, *__brkval; int v; ...


1

It's easy to confuse the pins of these single-pole buttons - I still do it. Only two pins are needed for this kind of button. The extra two are there for mechanical stability on the PC board. Lay the button on one of its sides: If the two upper pins come out of the top edge, those pins are switched - either open, or shorted by the button. Ditto, for the two ...


1

It's hard to tell which pins of the switch do what. Since you have your inputs set up as INPUT (instead of INPUT_PULLUP) you should have a resistor (10k Ω, say) tying those pins to ground. Then the other end of switch should connect to +5V. Don't connect the switches to both +5V and ground. Use a multimeter on continuity to make sure that the pins of the ...


0

So like this? And also what kind of serial speeds do I use? @Majenko This is the sender: int pot1 = A0; int pot2 = A1; int pot3 = A2; int pot4 = A3; // Some symbols for easy reference #define STX 2 #define EOT 4 #define DLE 16 void setup() { Serial.begin(9600); } void ...


0

It should be a fun project. Since you did not give us a schematic (not a frizzy thing) I can only guess. It appears to me you are using the I2C interface and may be week on the pull up resistors. Also the early 1 wire library would hang up if a device missed an ACK. There are many small programs that display the amount of free memory, include that in your ...


1

This is actually a huge topic, one that I could write volumes on. However I will try and be concise. But it is such a common question it's time to finally write a definitive answer. Sending data between devices, be that computers, Arduinos, or anything else like that, is very much like speaking to someone. It is very common to do something like you have done ...


3

If your goal is to "talk" to a computer vs. a human, then a format that can be parsed easily is better than one that is easy to read. For example, you have: I received: 255 I received: 247 I received: 11 I received: 0 While this could be parsed by your Uno, it will be a lot simpler if you send the data something like: 255|247|11|0 Now you can use ...


2

You can use a common ground in fact it's the normal thing to do with external circuits such as relays, servos etc


3

Any allocation / de- or re-allocation of memory[1] during run time, will cause the heap (the pool of memory from which those allocations are made) to expand until the heap and the stack grow toward each other enough to collide, at which point one overwrites part of the other with unpredictable results. Strings are allocated from the heap. Strings that are ...


5

It looks like you have the center segment and the top left vertical segment reversed. For the image you show, if you switched the on/off states of those 2 segments, you'd see 1230. I don't know if the problem is in your code or in your wiring. The simplest fix would be to swap the pins for those 2 segments.


1

Thanks to @PeterPaulKiefer here is the answer. External power for SIM800L module GND pin needs to be connected to both SIM800L module GND pin and Arduino nano GND pin. (e.g between RST and R2 pin on Arduino nano) In order for the calling function to work, you also need to use a capacitor on SIM800L VCC and GND pins. I used 35V, 3300µF. Schema: ...


2

You are supposed to use a filter library on top of the output of the gyro as well as the accelerometer data (both is used!) to get angles ... https://www.arduinolibraries.info/libraries/madgwick Here is a working example that prints the pitch of the sensor from +90 to -90 degrees: //#include <SPI.h> //#include <Wire.h> #include <...


1

It seems like using the distance feature in NeoGPS would be a good solution for this problem and it should allow you to create a buffer around the original location to filter some of the noise from the GPS readings. Here's a page with an overview of using Distance in NeoGPS https://github.com/SlashDevin/NeoGPS/blob/master/examples/NMEAdistance/NMEAdistance....


4

There are 3 LEDS on the Nano 33 BLE: A power LED on pin 25 (yes, you can turn off the power LED programatically); A built-in LED on pin 13; An RGB LED with red on pin 22, green on pin 23, and blue on pin 24. In the variant file, they are given names: #define PIN_LED (13u) #define LED_BUILTIN PIN_LED #define LEDR (22u) #define LEDG (23u) #...


1

Why are you limited to sending one value? You can have multiple Wire.write() calls in one transmission. The slave side just needs to know to expect multiple values in order to accommodate. The best way to do this would be to read in values as long as the master is sending them (check out https://www.arduino.cc/en/Reference/WireRead). Then your master changes ...


1

No, you can't just change pins. Both systems use hardware that is specific to pin 11. The best you could achieve would be to use a software SPI implementation on other pins to drive the nRF24L01, but that would mean changes to the library you are using to remove the SPI library usage and replace it with your own software SPI implementation.


1

The manual for the T2200, which I think is what you're referring to, says: Note: If the PowerPack does not automatically power on when a device is connected press the power button. The PowerPack will turn off after 90 seconds when there are no devices connected. This is a common feature for USB battery banks meant for charging phones and similar devices. ...


6

It's enforcing this line from the arduino:avr boards.txt nano.menu.cpu.atmega328.upload.maximum_size=30720 To be clear, the board is assumed to have a bootloader, even if you're not using it to get the code onto the board, that is upload via programmer. You could edit that and change some fuses yourself. But you could also probably just use MCUdude ...


2

DS3231 address is 104. Instead of using that large complicated header, send simple frame. For 1 sec pulse the frame will be : S 208 A 14 A 0 P N.B. Here address is 7 bit value 104. And a extra bit for R/W operation. In the Arduino wire library, you don’t need to include the R/W bit. So,just write 104. For hourly Alam set the INT bit of control register and ...


0

See the documentation at: DTC3231 Library Documentation Where there is the section on alarm bits and setting alarms: // Alarm functions void getA1Time(byte& A1Day, byte& A1Hour, byte& A1Minute, byte& A1Second, byte& AlarmBits, bool& A1Dy, bool& A1h12, bool& A1PM); /* Retrieves everything you could ...


Top 50 recent answers are included