Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
10 votes
Accepted

Turning all LEDs on (FAST.LED)

You can use fill_solid. For example fill_solid( leds, NUM_LEDS, CRGB(50,0,200)); Or fill_solid( leds, NUM_LEDS, CRGB::Red);
Rob Hilken's user avatar
6 votes
Accepted

Pin headers too long for the sensor i bought

Cut one pin off. Get some wire cutters and position them in the groove between the last and next to last pins in the row. Squeeze. One pin will pop off.
Majenko's user avatar
  • 105k
5 votes
Accepted

Adafruit Neopixel Library- only the first 16 LEDs respond

When something works, but not completely, it's often due to power issues. Embedded things, microcontrollers/Arduino are fairly robust and "logical". Hence, if your Arduino program works today, it'll ...
aaa's user avatar
  • 2,695
5 votes
Accepted

How to measure resistance of TFT Touchscreen

As pointed out in other answers and comments, step one was trying to get a datasheet for this component. I couldn't find a datasheet for the shield, but here is the link from the vendor I bought it ...
jotadepicas's user avatar
5 votes
Accepted

Schematic for the adafruit motor shield v2.3

Everything can be found out by reading the schematic which, incidentally, is the first hit on Google when you search for "Adafruit motor shield 2.3 schematic": What are the pin holes above and ...
Majenko's user avatar
  • 105k
5 votes
Accepted

How to use capactive touch on Adafruit board in Arduino mode?

Example code for capacitive touch on Trinket M0. Note: make sure to install the Adafruit FreeTouch library. // touch - Capacitive touch demo using FreeTouch. Trinket M0 version. // Note: the pin ...
zermat's user avatar
  • 166
5 votes
Accepted

What is the difference between SCLK and CLK pins?

"CLK" stands for "CLocK". "S" stands for "Serial". So "SCLK" is "Serial CLocK". You also get "SCL" (often used for I2C) and "...
Majenko's user avatar
  • 105k
4 votes
Accepted

How can I reduce the size of my sketch?

The AdaFruit Trinket just doesn't have a lot of memory - 8kb, of which 3kb is used by the bootloader. The order I look for things to reduce the footprint of an Arduino program are: data (e.g. large ...
AMADANON Inc.'s user avatar
4 votes
Accepted

Streaming audio from PC to Arduino over WiFi

Well, a sort of... You can stream 64kbps MP3, get it via wifi from esp8266. Then for all the rest, forget the Arduino. You need a dedicated MP3 decoder chip (many out there, sta013 was one of the ...
Gee Bee's user avatar
  • 771
4 votes
Accepted

Reduce 5v Trinket Pro to 3.3v?

The NRF24L01+ has inputs that are 5V tolerant! So you only need to provide 3.3V on the Vcc pin of the module, which you can do by putting a voltage regulator between it, and the 5V of the Trinket. So ...
Gerben's user avatar
  • 11.3k
4 votes

Applause reactivity

Not really an applause detector, but I have written a sound meter program you could use as a starting point for your own project. It is available here: Arduino sound meter. It works as follows: the ...
Edgar Bonet's user avatar
  • 43.2k
4 votes

Why are my motors attached to an Arduino MEGA not running?

As you did not give details I assume the following: You supply the MEGA via USB or external 5-12V power supply the motors are supplied via an extra external 12V power supply with sufficiant amperage ...
Codebreaker007's user avatar
3 votes
Accepted

Why does DHT-library (and others) only allow one object instance?

There is nothing wrong with the library. It does not allow just one object instance. What is wrong is your way of using it. It, and many other libraries, specify the pin numbers and other (under ...
Majenko's user avatar
  • 105k
3 votes

5V Trinket only outputting 3.3V?

Unfortunately I do not have the ability to comment. What I can suggest is to look at the small 5 pin regulator and look at its markings. If the IC is marked with "QT33" then adafruit has stupidly ...
Bradman175's user avatar
3 votes

How can I reduce the size of my sketch?

As already mentioned by AMADANON Inc. in his answer, you should qualify as const all the constant variables at the beginning of the program. This is probably the biggest space saver. You can gain ...
Edgar Bonet's user avatar
  • 43.2k
3 votes

How can I reduce the size of my sketch?

An option not already mentioned, but may be worth mentioning, would be to remove the bootloader and program the chip directly with a hardware programmer (or another Arduino). That will increase the ...
Majenko's user avatar
  • 105k
3 votes

Adafruit Neopixel Library- only the first 16 LEDs respond

You don't modify the library at all. The page refers to the constructor which is the last line here: #include <Adafruit_NeoPixel.h> #define PIN 6 Adafruit_NeoPixel strip = Adafruit_NeoPixel(...
Nick Gammon's user avatar
  • 38.3k
3 votes

Steppermotor+Arduino Mega+ Adafruit

I'd look for a proper stepper driver, e.g. something based on A4988 or similar. I wasted a fair amount of time on the Adafruit motor-shield 2.3 until I finally abandoned it after failing to achieve ...
marangisto's user avatar
3 votes

5pt font for Neopixel shield

I was having the same problem until I read the library source code. Later I found the documentation reference. The classic font cursor position is defined as the top-left corner of the character cell....
SDGOL's user avatar
  • 31
3 votes

Arduino Shield on Breadboard

Chances are the offset headers won't allow the shield to directly plug into a breadboard. As @Majenko noted, shields have a header that is offset by 0.16" from the other headers. Since a breadboard ...
Mazaryk's user avatar
  • 1,149
3 votes
Accepted

Press on pressure sensor, then wait 5 seconds, turn on LED

The basic concept for tracking timing in the loop() is as follows: 1) when your event occurs, you store the current time in a variable: unsigned long lastReading = 0; uint8_t waiting = false; if ( ...
Mazaryk's user avatar
  • 1,149
3 votes
Accepted

Fingerprint sensor code won't work correctly with LCD 16x2

You have pins 2 and 3 used by both the LCD and the SoftwareSerial used for the fingerprint sensor. Use different pins for one or the other. Worth looking at the Software Serial reference to ...
Mark Smith's user avatar
  • 2,181
3 votes
Accepted

Undervoltage from solar panels

You have selected a number of things that don't go well together. It is possible to use relays or mosfets to switch between batteries, and the Arduino could be used to measure a voltage. Or you can ...
Jot's user avatar
  • 3,246
3 votes
Accepted

Burning the Bootloader on Adafruit Feather 32u4

"Burn Bootloader" only works if you have a programmer connected to the device. The onboard bootloader in your Feather cannot change the fuses, even though the process may indicate it has done so. You ...
jose can u c's user avatar
  • 6,974
3 votes
Accepted

how to send data to Adafruit Bluefruit Feather (32u4) over bluetooth?

The “UART” being referred to is the Nordic UART GATT Service. This is not a serial port or USB connection. It is a high level BLE protocol that simulates a serial port via the Bluetooth connection. ...
RubberDuck's user avatar
3 votes
Accepted

add ID number to the feather m0 bootloader (flash)

This is quite an easy fix, actually. The problem here is the compiler doesn't think the const is used for anything - so it (quite rightly) throws it away. All you need to do is tell the compiler ...
Majenko's user avatar
  • 105k
3 votes
Accepted

Increase sample rate in ESP32 board

Here's a few tips on optimization. for(int index = 0; index <= framesRead; index++) { value = smappioSound.getSampleValue(index); if(index % 2 == 0) { ...
Maximilian Gerhardt's user avatar
3 votes

Arduino Switching Between Loops IR Remote

delay(0) apparently[*] acts like delay(2^32) or about 10^10 milliseconds. That may not be what you had in mind ... :) Try reducing the delay to 1 or use delayMicroseconds() to get something shorter. ...
JRobert's user avatar
  • 15.3k
3 votes
Accepted

How we can implement the interrupt?

There is no interrupt for the select button. The buttons, and the LCD itself, are connected to an I2C IO expander. Reading the state of the buttons is a polling operation - the library sends a ...
Majenko's user avatar
  • 105k

Only top scored, non community-wiki answers of a minimum length are eligible