Tell us about yourself!
- MikeM551 commented on HackerBoxes's instructable HackerBox 0049: Debug
- MikeM551 commented on HackerBoxes's instructable HackerBox 0049: Debug
On their original code try the following code change. Should be various green brightness....int red = random(0); //256 int green = random(50); //256 int blue = random(0); //256 int rgb = (green << 16) + (red << 8) + (blue); leds[i] = rgb;...works with red and blue as well.Don't forget the FastLED.addLeds<WS2812B, DATA_PIN, RGB>(leds, NUM_LEDS); vice FastLED.addLeds(leds, NUM_LEDS); fix.something else to try after.My last five lines of code look like this:FastLED.show(); // delay(4000); delay(10); // leds[i] = 0; // FastLED.show();Looks kind of cool actually.
View Instructable »well in this case ( instructables discussion boxes ) if you copy and paste to one of these boxes, anything inside of the < > including the < > will not paste correctly. I suppose they are control characters for this type of chat. Hence the <WS2812B, DATA_PIN, RGB> was left out of their original code casing compile errors. I have never had any real trouble with any .ino file, old or new over the years of Arduino IDE. Usually code error on my part.
- MikeM551 commented on HackerBoxes's instructable HackerBox 0049: Debug
RichW36 connect the 8x8 Matrix of WS2812B RGB LEDs Replace the lineFastLED.addLeds(leds, NUM_LEDS);in the Arduino code withFastLED.addLeds<WS2812B, DATA_PIN, RGB>(leds, NUM_LEDS);change the delay from 4000 to 10 for an interesting effect!The FastLED.h library is well commented.Mike M
RichW36 connect the 8x8 Matrix of WS2812B RGB LEDs Replace the lineFastLED.addLeds(leds, NUM_LEDS);in the Arduino code withFastLED.addLeds<WS2812B, DATA_PIN, RGB>(leds, NUM_LEDS);change the delay from 4000 to 10 for an interesting effect!The FastLED.h library is well commented.Mike M
connect the 8x8 Matrix of WS2812B RGB LEDs Replace the lineFastLED.addLeds(leds, NUM_LEDS);in the Arduino code withFastLED.addLeds<WS2812B, DATA_PIN, RGB>(leds, NUM_LEDS);change the delay from 4000 to 10 for an interesting effect!The FastLED.h library is well commented.Mike M
View Instructable »connect the 8x8 Matrix of WS2812B RGB LEDs Replace the lineFastLED.addLeds(leds, NUM_LEDS);in the Arduino code withFastLED.addLeds<WS2812B, DATA_PIN, RGB>(leds, NUM_LEDS);change the delay from 4000 to 10 for an interesting effect!The FastLED.h library is well commented.Mike M
- MikeM551 commented on HackerBoxes's instructable HackerBox 0048: SIMSAT
- MikeM551 commented on HackerBoxes's instructable HackerBox 0042: Worlds of WiFiView Instructable »
I ran across something stupid on my part folks....Here is the run down with its solution.Open your arduino with the .ino fileSet up the Arduino IDE as the instruction states.Connect the ch340 to your scanner PCB --->3 wires only:1. ch340 TX to to scanner PCB RX2. ch340 RX to scanner PCB TX3. ch340 GND to scanner PCB GNDno VCC connection.Scanner PCB switch is OFF at this point.Connect the ch340 with a cable that you know will carry the data lines.. (I had one that was a charge only cable -- no data lines in it!!!)See green LED glowing on the ch340.Now go to your IDE ---> TOOLS / PORT.. select the port.. mine was COM19. Don't trust that default comm number that shows up in the lower right corner of the IDE!Check the ch340 connection PID ( Pelvic inflammatory disease ... opp…
see more » - MikeM551 commented on HackerBoxes's instructable HACKERBOX 0028: JamBoxView Instructable »
Platform and Arduino version?I used the GUI git to gather the resources as you did.I see a \\ vs my \.Windows treats \\ as \ ( single backslash) However this IDE is using Java based on Processing and other open-source software, so that could be an issue?cross platform environmentsThe double \\ is for path strings within code, hence escape character from within strings.I am using:Windows 10 with 1.8.3 Arduino. along with the GIT 2.16.2 +GUI following the instruction, and leaving everything default.Mine works .. here is a cut from the Arduino IDE console:***Build options changed, rebuilding allDetecting libraries used..."C:\Users\Mike\Documents\Arduino\hardware\espressif\esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++" -DESP_PLATFORM ... and so forth...
- MikeM551 commented on HackerBoxes's instructable HackerBox 0025: Flair Ware
Remember.. pin 8 and 10 from the USBasp 10 pin connector are ground for the pin 4 of the ATTINY85 in Step 10. When I followed the wiring diagram ( Step 10: USBasp - Atmel AVR USB Programmer ) for the pluggable Dev board on this page, random results were happening during programming. ATTINY85 had no ground on pin 4. I could program the ATTINY85 with out the Pluggable dev board just fine using a breadboard. So use the diagram ( USBasp to Pluggable Dev Board ), but ensure the green wire is going to pin 8 or 10 on the USBasp 10 pin connector.
View Instructable »Remember.. pin 8 and 10 from the USBasp 10 pin connector are ground for the pin 4 of the ATTINY85 in Step 10. Relocate the green wire in step 10 to pin 8 or 10 on the USBasp. You WILL get the SCK period warning, it is fine, no need to mess with a firmware update for the USBasp, as programming works with out any troubles.
- MikeM551 commented on HackerBoxes's instructable HackerBox 0024: Vision Quest
Ah you do have a different panel. I did modify the fastLED line to GRB, the result is now red. ( nothing else was changed). RGB gives me green as intended. ( red and blue channels off) I left "int rgb = " alone. I thought we all had WS2812B LEDs.