Hi everyone.

This project was done for 'Creative Electronics', a Beng Electronics Engineering 4th year module at the University of Málaga, School of Telecommunications. (www.etsit.uma.es).

This project is a bulb with Bluetooth communication that can change colour brightness and create special effects with lights powered by 2 Neopixel Rings, it also has the possibility to connect a external sensor to measure outside parameters like temperature, humidity, move...

And a special fact, that is quite important nowadays, is that it onlyconsumes around 4W a maximum in white and with maximum luminosity.

Every parameter is controlled by an Android APP, that shows:

  • The mesure of the humidity and the temperature of the room in which the bulb is
  • Change the colour of the bulb.
  • To Program the default colour of the bulb that is an option if you want to use like a regular bulb.
  • Special lights effects , like an Aurora, light of a candle or random colors every 5 sec.

All the circuits are embedded in a regular bulb of 15W of which I only used the body.

So let's get started.

Step 1: Before Start

Before start, I think is better to know how its works.

Step 2: Bill of Materials.

In this project, I've tried to do it as cheap as possible and I think in a next version, it could be even cheaper If we did some changes in the circuit. For example using a ESP8266, but that will be a future modification.

The bill is around 22€.

It's detailed in the Excel file, with prices, quantity and links.

Materials used:

  • Regular Bulb 15W E27(It's important to be the same model, because it must have the same dimmesions).
  • Attiny85.
  • Neopixel 8Bit Ring.
  • Neopixel 12Bit Ring.
  • Bluetooth HC06
  • PCB 46mmx46mm
  • Phone Charger (minimun 1,5Amps and reduced dimensions, I used a Nexus 4 charger).
  • DHT11(Humidity/Temperature sensor)

Step 3: Hack a Regular Bulb and Phone Charger.

When you open a LED bulb, normally you will find a PCB with all the LED, and a power supply that transform 220 AC(Or the regular line voltage of your country) to around 100v DC to supply the LED.

It's quite easy to disassemble it, but be carefuk and follow these tips

  • Make sure that superior of the bulb is plastic and not glass.
  • It's better not to cut too short the wires of power supply that are connect to the bottom part, because before it's way difficult to solder to the metallic bottom part.
  • Obviusly, if you're going to hack it please, don't connect it to the electricity.

Finally, we only want the body of the bulb, so you can save the rest for another project.

Next step is to take off the circuit of a phone power supply, it's a little difficult so you have to be a bit patience. In the photo you can see the result.

Step 4: Design a Control Circuit

I've made two different options to develop the control circuit:

The first one, it's a PCB the schematic and board are uploaded. I think it's a better option to create through this method because you will find a better result.

But not every body has the possibility to make it this way so also I uploaded a version with Fritzing(Second imagen and protoboard file) to see that it's an easy circuit that can be made with a predrilled board.

(Note: The Fritzing version has different components because there aren't the same that I have used, but the pin-out is the same)

I used an ATtiny85 because the program control size is around 8KB so for the basic function it's not necessary more memory.

Step 5: Programming and Control.

This part, can be seppareted in two.

  • Firmware:

The firmware has been develop with Arduino IDE, but it's uploaded to an ATTiny85, that can run this software, although it is neccesary to use some extra libraries to run serial communication, neopixel and DHT11

The software basically, receives an message from the app that could be:

  • c(red_value 0 to 255)/(green_value 0 to 255)/(blue_value(0 to 255))/ to program the colour that we want.
  • t to send the value of the temperature that is measuring the sensor, but it can be changed to add another type of sensor.
  • e+(number) to start a special function like fire lights.
  • s that saves in EEPROM memory the value of the actual colour. When the bulb starts again will show that colour.
  • Android APP:

This APP has been developed with Thunktable, that allows you to do an APP with not too much knowledge of Android programming.

This app allows you to see the temperature of the room that is the bulb and control it.

Step 6: Assembly.

This part could be the hardest one of the developement. You had better be careful, since it's neccesary to isolate all the parts for security reasons,as we are working with AC current and that's very dangerous.

  1. Solder the wires to the bottom part of the bulb, like in the first and second imagen.
  2. Connect and sold the wires to AC part of the power supply(Third imagen)
  3. Isolate the circuit with hot glue(4th imagen).
  4. Make a drill hole to put the connector of the sensor like in the 5th imagen.
  5. Connect every thing to the main PCB like in the 6th and 7th imagen.

Finally,If everything is corrrect, it should be like in the last photo and ready to be closed.

Step 7: Finish.

That's all.

I want to thank my sister for helping me with the writing in English.

I hope you've enjoyed this project.

If you any question, please ask me.

<p>So you buy a bulb to break a bulb to make a bulb? I mean I have bought stuff to take apart for components that are like platinum coated unobtanium to obtain any other way but I think this could have been better served with some sort of custom enclosure rather than shoehorning it into the remains of something else.</p>
<p>What sort of custom enclosure could then easily be screwed into a regular light socket, and at what cost? I can buy a cheap LED bulb for less than $3 at discount stores nowadays. I doubt I could find an empty bulb housing (or any kind of nice enclosure for electronics, for that matter) for that price online, with the cost of shipping.</p><p>The point of screw-in replacement LED bulbs is to take advantage of hundreds of millions of existing light fixtures. There is nothing wrong (and even some good advantages) to mounting LED lights in other sorts of enclosures for custom room lighting, but the legacy of the Edison type light bulb is so deeply embedded in the world it does make sense to adapt new technology (such as smart bulbs) to work with it.</p>
<p>Well I agree with you that LEDs are to directly replace our old CLFs and I use them almost exclusively at home (quick tip - if you use the cool white or daylight types, 3000K or 4000K, make a shroud out of baking parchment to knock back some of the blue without losing too much brightness).</p><p>I just feet that after all that work that an attractive object would show off your handiwork better than shoving it in a light socket and forgetting about it. And as for an enclosure that cost less than three dollars? Surely that shouldn't be an issue on Instructables!</p>
<p>Nice idea, but bluetooth is sheet and i don't think i need humidity and temperature inside the lamp - it's signifficantly differs what i feel.</p><p>ESP8266 - the solution.</p>
<p>Thank you!<br>Well the idea about use this sensor is to know the temperature of the room where is the bulb. Is just like an extra feature.</p>
I got it, but bulb even led one generates quite a heat, so you can't belive it :)<br>Anyway nice build!
<p>This is a cool Idea and I would like to try this soon. One question, you said you used an android app to help write the program what is the name of the app? The link &quot;thunktable&quot; opened to an ad site. What am I missing?</p>
<p>Thank you!<br>The app is in the programming and control step and the name is BulbBtV2.apk.<br>I'm sorry I've uploaded wrong the link of the web page, now is correctly available.<br>This is the correct link:<br><a href="http://app.thunkable.com/login/">http://app.thunkable.com/login/</a><br>You can open the .aia file in that web to see the code of the app.</p>
<p>Follow your dreams!!!</p>
<p>Nice colours!</p>
<p>Good idea. Alternative for Phillips Hue..</p>
<p>Thank you!</p>
<p>nice work my friend , nice reuse of old dead bulb</p>
<p>Thank you!</p>

About This Instructable




Bio: Telecom engineering student specialized in electronics systems. Appasionated in build stuff, connect every thing and automate stuff.
More by JuanF92:NeoBulb (Neopixel bulb with sensor) DIY CNC for less of 160€ with arduino Control your Air Conditioner(IOT) with ESP8266  
Add instructable to: