Closed AddumBacon closed 1 year ago
Hi there! Would you be able to provide large, high resolution screenshot(s) showing the entire Arduino IDE window, including the compile errors?
Actually, I input the code wrong. The code compiles and uploads, but I don't think the light is working
Here is my Arduino setup https://drive.google.com/file/d/1rRBhOav8IWJbG1fFa1jqznPeRbfilMcw/view?usp=sharing
Here is the sketch code
It looks like line 32 is:
const uint16_t kIrLed = ~3;
Can you make it just:
const uint16_t kIrLed = 3;
I changed it, but it still isn't working.
Got it. We may have solved one issue but still need to figure out the rest..
Can you describe exactly what steps you are taking to try and get the bracelet to light up (how you are connecting the Arduino, how you are compiling and uploading the Arduino code, how/when you are running the Python code, etc [plus which files you are using])?
Also:
I think we'll get this working for you eventually!
Ok, so this is my fault. I haven't installed or worked with python before. I was trying to figure it out, but I'm on Windows and it is a bit confusing.
The PixMob is from The Weeknd show in Seattle on August 25th.
Hi there.
No problem, I'm also on Windows and it can be a little annoying but we should be able to get it figured out. There's one way we can do a quick test before doing stuff with Python.
You'd want to first install the official Arduino IDE, install the required IRemote library, take the code from your screenshot and load it onto the Arduino. I'm not sure exactly which of those steps you've done already. You can probably find tutorials about them but I am happy to try and answer questions too.
Also, you will definitely need to replace the batteries for your The Weeknd bracelet from August if you haven't yet. It takes two CR1632 batteries.
Once you have the code running on the Arduino, you can test the setup without Python by opening the Serial Monitor window in the Arduino IDE, confirming the baud rate is set correctly to match the code (115200), pasting in the following text (including the trailing comma), and sending it:
[35]19121211241212132213221324121123241,
(sounds like there's still a few more things to be done before that though)
I did all that and didn't see any info come back on the Serial Monitor
I see.
Two things:
Yes, I pressed enter and a light on the board did light up. Looks like I need to get some new batteries. I will let you know how it goes after I do that!
Good luck!
Ok, new batteries and it still isn't working.
Nevermind, the batteries weren't in correctly! One has to be upside down.
It works!
Awesome!
Is that from pasting the code in the serial monitor, or did you get the stuff with Python set up?
As a side note, from the picture it looks like The Weeknd changed the type of bracelet mid-tour, interesting. I went to an earlier show and got a different model. Interesting!
It was from pasting the code in the serial monitor. I guess figuring out the python code is next.
Cool. Biggest things to note may be:
I also won't be mad if you don't want to bother haha
I do want to bother! I am determined to get it working! I will let you know if I run into any issues.
Great!
I changed the parameters and ran the code and got back these errors.
Do you still have the serial monitor open? If so, that may be "taking over" that port and making it so the Python program can't access it.
Legend! That worked. Thanks so much for sticking with me and helping me figure it out!
Here are some more pics. I have two of them.
Yay!
I'm new to Arduino and compiling code, but want to mess with the Pixmob light I got.
I tried to compile/upload the Transmitter sketch and got these errors:
C:\Users\Adam\Desktop\PixMob_Transmitter_Arduino\PixMob_Transmitter_Arduino.ino:1099:25: error: missing terminating " character data-action=" ^ C:\Users\Adam\Desktop\PixMob_Transmitter_Arduino\PixMob_Transmitter_Arduino.ino:1100:41: error: stray '#' in program input-entered:ref-selector#inputEntered ^ C:\Users\Adam\Desktop\PixMob_Transmitter_Arduino\PixMob_Transmitter_Arduino.ino:1101:40: error: stray '#' in program tab-selected:ref-selector#tabSelected ^ C:\Users\Adam\Desktop\PixMob_Transmitter_Arduino\PixMob_Transmitter_Arduino.ino:1102:38: error: stray '#' in program focus-list:ref-selector#focusFirstListMember ^ C:\Users\Adam\Desktop\PixMob_Transmitter_Arduino\PixMob_Transmitter_Arduino.ino:1103:13: error: missing terminating " character " ^ C:\Users\Adam\Desktop\PixMob_Transmitter_Arduino\PixMob_Transmitter_Arduino.ino:1150:25: error: missing terminating " character data-action=" ^ C:\Users\Adam\Desktop\PixMob_Transmitter_Arduino\PixMob_Transmitter_Arduino.ino:1151:41: error: stray '#' in program input-entered:ref-selector#inputEntered ^ C:\Users\Adam\Desktop\PixMob_Transmitter_Arduino\PixMob_Transmitter_Arduino.ino:1152:40: error: stray '#' in program tab-selected:ref-selector#tabSelected ^ C:\Users\Adam\Desktop\PixMob_Transmitter_Arduino\PixMob_Transmitter_Arduino.ino:1153:38: error: stray '#' in program focus-list:ref-selector#focusFirstListMember ^ C:\Users\Adam\Desktop\PixMob_Transmitter_Arduino\PixMob_Transmitter_Arduino.ino:1154:13: error: missing terminating " character " ^ C:\Users\Adam\Desktop\PixMob_Transmitter_Arduino\PixMob_Transmitter_Arduino.ino:1637:72: error: stray '#' in program
C:\Users\Adam\Desktop\PixMob_Transmitter_Arduino\PixMob_Transmitter_Arduino.ino:1641:72: error: stray '#' in program
C:\Users\Adam\Desktop\PixMob_Transmitter_Arduino\PixMob_Transmitter_Arduino.ino:1704:182: error: stray '#' in program
C:\Users\Adam\Desktop\PixMob_Transmitter_Arduino\PixMob_Transmitter_Arduino.ino:1704:216: error: stray '#' in program
C:\Users\Adam\Desktop\PixMob_Transmitter_Arduino\PixMob_Transmitter_Arduino.ino:1708:182: error: stray '#' in program
C:\Users\Adam\Desktop\PixMob_Transmitter_Arduino\PixMob_Transmitter_Arduino.ino:1708:216: error: stray '#' in program
C:\Users\Adam\Desktop\PixMob_Transmitter_Arduino\PixMob_Transmitter_Arduino.ino:1725:182: error: stray '#' in program
C:\Users\Adam\Desktop\PixMob_Transmitter_Arduino\PixMob_Transmitter_Arduino.ino:1725:216: error: stray '#' in program
C:\Users\Adam\Desktop\PixMob_Transmitter_Arduino\PixMob_Transmitter_Arduino.ino:1795:12: error: missing terminating ' character