loading
11CommentsJoined February 4th, 2016

Tell us about yourself!

Complete Your Profile

Achievements

Show 1 More »
  • X-Pilot commented on Natural Nerd's instructable Music Reactive Desk Lamp1 month ago
    Music Reactive Desk Lamp

    Result can be view here:https://goo.gl/photos/RUbk1qUiwDiniarB6

    Solution mentioned below. Read for user @mizark > X-Pilot. This should help you

    Yes I did. The problem is, the microphone has quite a poor sampling range. Here are some brief steps how I fix it: 1) Your microphone should have 2 leds on it. One for power the other one for noise. If both leds are on you need to twist the screw on the potentiometer (the blue thing) until one of the leds switches off. Now fine tune it (be in a quiet room and twist the screw while talking until it blinks with your voice) - This will be your sweet spot. In order to do this effectively, please continue reading :)1a) To see the values coming in from your sensor (as you twist the screw), you need to modify Hansi's code a bit. I've already mentioned this in my previous comments, I'll paste a copy here:-------------------------------------To get the values out of your sensor all you need is a...see more »Yes I did. The problem is, the microphone has quite a poor sampling range. Here are some brief steps how I fix it: 1) Your microphone should have 2 leds on it. One for power the other one for noise. If both leds are on you need to twist the screw on the potentiometer (the blue thing) until one of the leds switches off. Now fine tune it (be in a quiet room and twist the screw while talking until it blinks with your voice) - This will be your sweet spot. In order to do this effectively, please continue reading :)1a) To see the values coming in from your sensor (as you twist the screw), you need to modify Hansi's code a bit. I've already mentioned this in my previous comments, I'll paste a copy here:-------------------------------------To get the values out of your sensor all you need is an extra line of code. To the existing code, locate this part:void visualize_music() {int sensor_value, mapped, avg, longavg;//Actual sensor valuesensor_value = analogRead(ANALOG_READ);Add this line after the sensor_value:Serial.println(sensor_value, DEC);After you've done that, upload the code to the board. Once everything is ok, in your Arduino IDE, go to Tools menu -> Serial Monitor / Serial Plotter. Serial monitor will open a window where you will be able to see the 10bit values from your sensor. Values will be in the range from (0 to 1023). Now depending on your sensor, you may have to adjust it using the potentiometer (yellow screw) using a small flathead screwdriver. Adjust until you get a decent result.-------------------------------------1b) For me the values that are decent are between 595 and 630 - this is quite a short interval so don't expect much blink of your lamp. Look at the values or plotted chard (if you use Serial Plotter). Turn on some music and talk around your sensor, you will see the changes. 2) Once you are happy with your values, you need to change the code further more. Please locate this variables in your code: //The amount of LEDs in the setup#define NUM_LEDS 150 --- make sure you have the correct number of leds here//Confirmed microphone low value, and max value#define MIC_LOW 0.0 --- change this to the lowest value you got from the serial out / plot chart - in my case I set to 595#define MIC_HIGH 737.0 -- change this to the highest value you got from serial out / plot chart - in my case I set to 630Now your lamp should behave decent :) I recommend getting a proper mic, like the one Hansi has. In any case, if you have any further questions, don't be a stranger.Hope this helps. Cheers,Radu

    Most likely no. 1) Led strips draw a lot of power - around 1.8A (120 led, full white). Your battery capacity (depending on your phone) is around 2.5A to 3A. So while the numbers look ok, it will drain your battery fast - not to mention that your phone will get very hot. 2) Now comes the second fun part. The USB on your phone needs to be USB OTG (on the go). To test this, plug in a usb memory stick. If it boots, you're good to go. 3) Current limiting by host - it's most likely a safety feature is added in these blasted devices, so if you exceed 1A power drawn it will cut the power to your strip.Now if all conditions are met, it's theoretically possible. I managed to power my system with this little guy :) http://www.mi.com/en/pb10000/Benchmarked it, lasted around 4 hours until it went out

    View Instructable »
  • X-Pilot commented on Natural Nerd's instructable Music Reactive Desk Lamp2 months ago
    Music Reactive Desk Lamp

    Hello Dragon 940C,A multimeter won't work. Since the changes are very rapid, your multimeter will likely fail to get the correct values (since most multimeters have a delay in response to fast voltage changes).For my initial development I used my DSO 203 pocket oscilloscope - this was purely done to check if the sensor was working without uploading the code. I recommend you get one (yes they are quite expensive, but in the long run you'll be able to debug a lot more electronics components and see binary data being sent as square waves. Here's a link to my oscilloscope:http://www.ebay.com/itm/ARM-DSO203-Nano-V2-Quad-Po... I know it's expensive. Alternatively, you can build one yourself :)https://www.amazon.com/JYE-DSO-138-Open-Source/dp/...Now, if you want just to get the values out of y...see more »Hello Dragon 940C,A multimeter won't work. Since the changes are very rapid, your multimeter will likely fail to get the correct values (since most multimeters have a delay in response to fast voltage changes).For my initial development I used my DSO 203 pocket oscilloscope - this was purely done to check if the sensor was working without uploading the code. I recommend you get one (yes they are quite expensive, but in the long run you'll be able to debug a lot more electronics components and see binary data being sent as square waves. Here's a link to my oscilloscope:http://www.ebay.com/itm/ARM-DSO203-Nano-V2-Quad-Po... I know it's expensive. Alternatively, you can build one yourself :)https://www.amazon.com/JYE-DSO-138-Open-Source/dp/...Now, if you want just to get the values out of your sensor, you don't need all that. All you need is an extra line of code. To the existing code, locate this part:void visualize_music() { int sensor_value, mapped, avg, longavg; //Actual sensor value sensor_value = analogRead(ANALOG_READ);Add this line after the sensor_value: Serial.println(sensor_value, DEC);After you've done that, upload the code to the board. Once everything is ok, in your Arduino IDE, go to Tools menu -> Serial Monitor / Serial Plotter. Serial monitor will open a window where you will be able to see the 10bit values from your sensor. Values will be in the range from (0 to 1023). Now depending on your sensor, you may have to adjust it using the potentiometer (yellow screw) using a small flathead screwdriver. Adjust until you get a decent result. Hope this helps :)

    View Instructable »
  • X-Pilot followed Natural Nerd2 months ago
      • Glossy Custom Gamecube Controller Mod
      • Companion Cube Storage Box
      • Music Reactive Desk Lamp
  • X-Pilot commented on Natural Nerd's instructable Music Reactive Desk Lamp2 months ago
    Music Reactive Desk Lamp

    Hello,I've figured out what is happening with the Nano - never buy cheap chinese hardware. So I dug around and I found that the Nano cannot work with just the pin external power supply. For some reason the loop() does not execute if there's no power supply on the usb bus line. To solve this, I will move the Nano power supply via a mini usb jack. I need just the positive 5V on the USB line, rest seems to work like a charm, even with the ground on the external pin.I've added two video links below, describing the problem and solution :)1st video - setup with only external power:https://goo.gl/photos/jHKDCg17kFWMiqhv62nd video - connect an external power source (in this case just your daily USB power transformer - only power no data) to the Nano. Note that the VIN pin is disconnected. Only ...see more »Hello,I've figured out what is happening with the Nano - never buy cheap chinese hardware. So I dug around and I found that the Nano cannot work with just the pin external power supply. For some reason the loop() does not execute if there's no power supply on the usb bus line. To solve this, I will move the Nano power supply via a mini usb jack. I need just the positive 5V on the USB line, rest seems to work like a charm, even with the ground on the external pin.I've added two video links below, describing the problem and solution :)1st video - setup with only external power:https://goo.gl/photos/jHKDCg17kFWMiqhv62nd video - connect an external power source (in this case just your daily USB power transformer - only power no data) to the Nano. Note that the VIN pin is disconnected. Only common ground is present. https://goo.gl/photos/P3fysPKU1RrUCj9C9Thank you for your support. This was an awesome build and a lovely thing to debug.

    View Instructable »
  • X-Pilot made the instructable Music Reactive Desk Lamp2 months ago
    Music Reactive Desk Lamp

    I have power on the VIN and GND pins on the Nano board. The wiring is common for the strip, audio sensor and Nano board. To be more specific:Case 1: Nano board gets only external power1) The system powers up as usual2) The lamp turns blue in color (setup() function is called correctly)3) Nothing else happens as if Nano does not enter loop() function4) If at anytime I plug the USB from the Nano to a computer (I haven't tried an alternative power source) the lamp enters loop() function and works as normal5) I pull out the USB connection from Nano. Leds freeze, nothing else happens. Led on the mic board still blinks as it still receives data from analog pin. All components are still powered by the external source.---------------------------Case 2: Nano board is connected to USB and externa...see more »I have power on the VIN and GND pins on the Nano board. The wiring is common for the strip, audio sensor and Nano board. To be more specific:Case 1: Nano board gets only external power1) The system powers up as usual2) The lamp turns blue in color (setup() function is called correctly)3) Nothing else happens as if Nano does not enter loop() function4) If at anytime I plug the USB from the Nano to a computer (I haven't tried an alternative power source) the lamp enters loop() function and works as normal5) I pull out the USB connection from Nano. Leds freeze, nothing else happens. Led on the mic board still blinks as it still receives data from analog pin. All components are still powered by the external source.---------------------------Case 2: Nano board is connected to USB and external power. Led strip GND is disconnected not to overload the Nano board (since PWR and GND are all tied in parallel).1) As soon as I plug in the led strip to ground, everything works as expected.2) I pull out the USB connection from Nano. Leds freeze, nothing else happens. Led on the mic board still blinks as it still receives data from analog pin. All components are still powered by the external source.3) Plug USB back into Nano. Lamp resumes normal operation. If I repeat step 2, same result.I've attached some images. Of the build and pins. Wiring: Red - positive 5VBlack - GNDGreen - Connects Nano (D6) to led stripBlue - Connects microphone AOUT to Nano (A0)Thank you for your help

    View Instructable »
  • X-Pilot commented on Natural Nerd's instructable Music Reactive Desk Lamp2 months ago
    Music Reactive Desk Lamp

    Hello,Thank you for uploading the code in such a short period of time. I appreciate it. I ran your code and I get better results. Not as cool as the one you got in your video but still, satisfactory for the first build. I believe this is because of the audio sensor. I couldn't find a part number or any data sheet on it :/ It was cheap, in any case, about 3$. I tuned it with the potentiometer to the sweet zone: values between 590 and 630. This seem to work best. The problem is I get little sample rate with this interval. Probably because of the sensor. I am thinking of upgrading to a preamp-ed sensor and see what results I get. In other troubleshooting and electronic gnomes, I find that the lamp only works when the nano is connected to the USB... When I unplug the usb cable out of the Na...see more »Hello,Thank you for uploading the code in such a short period of time. I appreciate it. I ran your code and I get better results. Not as cool as the one you got in your video but still, satisfactory for the first build. I believe this is because of the audio sensor. I couldn't find a part number or any data sheet on it :/ It was cheap, in any case, about 3$. I tuned it with the potentiometer to the sweet zone: values between 590 and 630. This seem to work best. The problem is I get little sample rate with this interval. Probably because of the sensor. I am thinking of upgrading to a preamp-ed sensor and see what results I get. In other troubleshooting and electronic gnomes, I find that the lamp only works when the nano is connected to the USB... When I unplug the usb cable out of the Nano, the lamp freezes. Turning it on / off without a USB connection seems to break it. To describe this bug even further, it seems that Setup code runs ok, then the loop stops... I apologise for the newb question, but I don't know how to solve this. I've looked on google for an answer, but I couldn't find anything relevant. Hope you can help me with that as well.Thank you.

    Cheap chinese sensors. I will try a preamp-ed version of the sensor, hopefully i'll have more values from serial. My current range is from 590 to 630. Lots of noise, not really reliable for music.

    Also, since you are using a stepper down, I presume it includes a capacitor on the output (on the board). I am telling you this because, I've noticed . a voltage drop when the led strip is peaking, not too much, about 0.3 of a volt but enough to cause the resistor value to change on the mic sensor. I am planning to add a 100 uF capacitor, see if I can get more stable voltages.

    View Instructable »
  • X-Pilot made the instructable Music Reactive Desk Lamp2 months ago
    Music Reactive Desk Lamp

    Hello,This project was awesome! I've had my go at it and completed most of it. I didn't need a step down converter, I have a 5v power supply. However when I ran your code, I hit a snag, hopefully you can help me out.I've wired everything together, led strip works in the setup function, however, it does not work with my current audio sensor. Only 3-4 leds blink... I presume this is because of the values I get from the analog read. I tuned it with the screw (potentiometer), got the sensor led to blink as expected. The serial out values are between 670 and 705, which goes up to 900 when I clap next to it. Can you give me some info on this? It's my first arduino build btw, I've done some raspberries and tried my hand on Arduino.

    View Instructable »
  • X-Pilot followed 3D Printing and LEDs channel 1 year ago
  • X-Pilot followed Laser Cutting, Photography, Tools, LEDs and 29 others channel 1 year ago