Bar Graph with Neopixel
Tweaking4All » Arduino
by Trace
3w ago
Hi there everyone, hi @Hans. After the very successfull Power Rangers Project, I got a new one. Who does remember the "old" bar graph displays for showing battery status or as a level indicator? This was used for the Ghostbusters Neutrona Wand. And while there are a bunch of LED bars with controllers and programs for that, they are just multiplexed LEDs. And therefore just one or two colors. What if we use WS2812 instead? So we can have great color effects and a bunch of animation effects and without the need of extra microcontrollers and a bunch of cables. Of course it later must be a cus ..read more
Visit website
Help with MFRC522 RFID Reader: Reading Data and Detecting Card Removal
Tweaking4All » Arduino
by christosmouzakis
2M ago
Hello everyone, I'm working on a project using the MFRC522 RFID reader with Arduino, and I've encountered a couple of challenges that I'm hoping to get some advice on. My project involves detecting an RFID card, reading a nickname stored in a specific block on the card, and accurately detecting when the card is removed from the reader. I'm using the MFRC522 library for this purpose. 1. Reading a Nickname from a Block: I've successfully managed to read the UID of the card and can authenticate with a specific block to attempt reading data. However, I'm specifically interested in reading a ..read more
Visit website
Arduino Switch Case no break
Tweaking4All » Arduino
by ledmeup
5M ago
Hi everybody! I dearly need some help with this sketch! I have a toggle switch on a MEGA 2560. Each time the switch is pushed, a counter goes up by 1. Reachind "8", it is reset to "0". This part just works fine. BUT: When I add the Switch Case, it gets stuck in "case 1". The serial printer gives out "mainSwitchcounter1?" and "1". On and on. And the LED does "on/off" forever. So the "break" does not work. What am I missing? Your help would be highly appreciated!!! // for MEGA 2560 // Each time the mainSwitch is activated, the counter goes up by 1 and calls up a corresponding Switch Case sectio ..read more
Visit website
Test topic
Tweaking4All » Arduino
by Hans
5M ago
Code that seems to crash the forum: #include <FastLED.h> #define NUM_LEDS 48 #define buttonPin1 5 #define buttonPin2 3 CRGB leds; void setup() { FastLED.addLeds < NEOPIXEL, PB1 > (leds, NUM_LEDS); pinMode(buttonPin1, INPUT_PULLUP); pinMode(buttonPin2, INPUT_PULLUP); } void loop() { if (digitalRead(buttonPin1) == LOW) { CRGB pattern[] = { CRGB(255, 255, 255), CRGB(255, 255, 255), CRGB(255, 0, 0), CRGB(255, 0, 0), }; size_t pattern_sz = sizeof(pattern) / sizeof( * pattern); // a 8.8 fixed point position (so 256 = 1.0, 512 = 2 ..read more
Visit website
FastLED Light effects for Power Rangers
Tweaking4All » Arduino
by Trace
6M ago
Hi folks, as you might know, Im not a coder. And because I only use Arduino for some of my scale model projects, I just get lost everytime I start coding again. So, thats why I don´t know where to start and Im stuck on "easy" tasks. Im not just a Trekkie but also a big classic Power Rangers Fan. So I bought a Hasbro Lightning Collection Power Morpher to change the toy like electronics and make it my own. The toy has a coin recognition (the coins have nodges which press buttons). So depending on which buttons are pressed, the light has different colors. I would like to keep this idea, so I can ..read more
Visit website
Compilation error
Tweaking4All » Arduino
by del
8M ago
Arduino 2.0.4 Code - I am trying to learn to use CAN with Arduino. I downloaded this code to help with my learning curve. But it gives me this Compilation error: "cannot declare variable 'CAN' to be of abstract type 'MCP_CAN'" and highlights the 8th & 14th lines. Can someone help me? #include <SPI.h> #include <mcp_can.h> const int spiCSPin = 10; int ledHIGH = 1; int ledLOW = 0; MCP_CAN CAN(spiCSPin); void setup() { Serial.begin(115200); while (CAN_OK != CAN.begin(CAN_500KBPS)) { Serial.println("CAN BUS init Failed"); delay(100 ..read more
Visit website
Having some issues with my coding
Tweaking4All » Arduino
by baker7001
9M ago
I have never worked with code or anything like it until about a month and a half ago. I am writing this code to be triggered by inputs to turn specific light sequences on. Any help in what I have wrong would be greatly appreciated! I am going to copy what I have here and hopefully someone can point out what I have wrong and help me fix it. #include "FastLED.h" #include <Adafruit_NeoPixel.h> #define NUM_LEDS 100 #define DATA_PIN0 11 #define DATA_PIN1 10 #define DATA_PIN2 9 #define DATA_PIN3 13 #define CHIPSET WS2811 #define BRIGHTNESS 200 #define ON 1 #define OFF 0 CRGB leds; void set ..read more
Visit website
Gary's code - Wanting to run your specific effects on multiple strips
Tweaking4All » Arduino
by Hans
10M ago
Code: #include <Adafruit_NeoPixel.h> // Pattern types supported: enum pattern { NONE, RAINBOW_CYCLE, THEATER_CHASE, COLOR_WIPE, SCANNER, FADE }; // Patern directions supported: enum direction { FORWARD, REVERSE }; // NeoPattern Class - derived from the Adafruit_NeoPixel class class NeoPatterns : public Adafruit_NeoPixel { public: // Member Variables: pattern ActivePattern; // which pattern is running direction Direction; // direction to run the pattern unsigned long Interval; // milliseconds between updates unsigned long lastUpdate; // last up ..read more
Visit website
Arduino "CASE " Problems
Tweaking4All » Arduino
by farticus
1y ago
Hi there from Arduino nerd needing help. I have posted a similar problem on Arduino forum but cannot get any help ( Probably my fault and not their's), with what seems like a very simple "Case statement". int aaa = 0; int z1 = 0; int z2 = 0; void setup() { Serial.begin(9600); Serial.println(" Begin"); } void CasE() { switch (aaa) { case 1: // /* Serial.print(" START CASE 1"); z1 = 12 * 12 / 2 + 45 - 31; Serial.print(" Z1 ="); Serial.println(z1); // */ break; case 2: Serial.print(" START CASE 2"); int z2 = 12 * 12 / 2 + 45 ..read more
Visit website
Finding Arduino Certificate Repository
Tweaking4All » Arduino
by harryrad
1y ago
Hi All, Please can someone point me in the direction of the Arduino certificate repository? I want to add my company's Z-scaler cert so it will stop blocking the IDE when it tries to download Libraries and board drivers. I get the following error upon starting up the IDE. Any other help would be greatly appreciated (I am not sure if the cert repository is the right solution). 426 I am not based in a country with any restrictions/sanctions. Thanks,   ..read more
Visit website

Follow Tweaking4All » Arduino on FeedSpot

Continue with Google
Continue with Apple
OR