Close
0%
0%

Wand of Illumination

A Wand-themed Attiny13A Based Flash Light

Public Chat
Similar projects worth following
Greetings everyone and welcome back! This is the "Wand of Illumination," a 3D-printed wand combined with a flashlight incorporated inside.
Utilizing one of the Harry Potter wands as a model, we have created a new wand from scratch. Inside the wand, we then installed a fully operational flashlight circuit.

An Attiny13A 8-bit microprocessor connected to a switch that toggles the white 5mm LED makes up the flashlight circuit. A 3.7V, 50mAh LiPo cell that we added inside the wand serves as the power source. The TP4056 IC configuration, a well-known Li-ion/LiPo charging IC, is used to charge the LiPo cell.

Using the sketch we uploaded to the Attiny, the user can flip an LED on or off by pressing the switch for 500 milliseconds. If the user presses the switch again, the LED will turn off.

Design Breakdown

The first step in the design process was to import an image of a wand into Fusion360 from the internet.

We calibrated the length of the wand, to be exact, 300mm. Next, the calibrated image will be traced to create a rudimentary sketch, which will subsequently be used to create a rough body.

The idea was to stick to the basic wand shape rather than trying to replicate the asymmetrical details or wood texture, which would be difficult to print on my Ender 3 printer.

With the intention of incorporating a torch light within the wand, we hollowed out the design and separated it into three sections: the handle, the upper shaft, and the lower shaft.

The handle portion has the upper and lower shaft sections attached in place and mounted together.

A little LiPo cell is positioned inside the handle's lower portion, and we have put a circuit inside the handle portion that will house all the electronics.

The handle portion is split into two halves.

On the handle portion, we have also incorporated a Switch knob.

3D Parts

Once the model was complete, we used a 0.4mm nozzle, 20% infill, and 0.2mm layer height to 3D print each component out of brown PLA.

The process of assembling the upper and lower shafts involves inserting the upper shaft through the lower shaft and securing it with superglue.

Circuit

In this instance, an Attiny13A 8-bit MCU is connected to a switch on pin 4, and a load resistance is used to control current by connecting the LED load directly to pin 0.

We are using a LiPo cell as our power source, and it is coupled to a separate charging IC arrangement that includes a TP4056 minimal setup.

Also, we will be using a vertical USB Micro Port here for charging input for the TP4056 IC.

As for the LED, we are using a 5mm white LED made by EVERLIGHT.

With a forward voltage of 2.8V to 3.6V, this high-luminous white LED is commonly utilized in torch lighting applications. Its 15 degree viewing angle and maximum forward current of 30 milliamperes make it ideal for our Wand-Flashlight project.

https://en.everlight.com/visible_led/category-lamp_led/5mm_round_type__333/

We used measurements from the cad design to prepare the PCB, which included the position of mounting holes and Switch.

After finalizing the board, Gerber data was generated and then sent to PCBWAY for samples.

PCBWAY PCB Service

We placed an order for a white silkscreen LED board.

After placing the order, the PCBs were received within a week, and the PCB quality was pretty great.

They are presently celebrating their tenth anniversary in business by hosting a tour that includes a few activities in which you can take part and win some goodies, such as special coupons and the chance to open blind boxes filled with merchandise from their gift shop.

Over the past ten years, PCBWay has distinguished itself by providing outstanding PCB manufacturing and assembly services, becoming a trusted partner for countless engineers and designers worldwide.

Their commitment to quality and customer satisfaction has been unwavering, leading to significant growth and expansion.

You guys can check out PCBWAY If you want great PCB service at an affordable rate.

BODY 1.stl

Standard Tesselated Geometry - 1.52 MB - 07/18/2024 at 09:03

Download

BODY 2.stl

Standard Tesselated Geometry - 887.58 kB - 07/18/2024 at 09:03

Download

1.stl

Standard Tesselated Geometry - 334.65 kB - 07/18/2024 at 09:03

Download

WAND v10.step

step - 654.11 kB - 07/18/2024 at 09:03

Download

2.stl

Standard Tesselated Geometry - 355.94 kB - 07/18/2024 at 09:03

Download

  • 1
    PCB Assembly Process
    • The PCB assembly process started by first adding solder paste to each component pad using a solder paste dispensing needle.
    • Next, we pick and place all the SMD components in their place using an ESD Tweezer.
    • We place the circuit on our DIY SMD REFLOW HOTPLATE, which heats the PCB from below up to the solder paste melting temperature, and components are soldered to their pads.
    • We then added the vertical USB port and Push Switch to their locations and soldered their pads using a soldering iron.
  • 2
    Power Source: LiPo Cell
    • Once the circuit was finished, we connected the battery connectors of the circuit to the positive and negative terminals of the LiPo cell.
    • After that, we plug in the power via the USB port and measure the current drawn—0.23 A—using a USB power meter. As the battery charges, the current it draws will decrease. At the moment, the battery's voltage is 3.8V, and its maximum voltage will be 4.2V.
    • The red LED will glow during the charging process; however, the green LED will turn on and the red LED will switch off when the battery reaches 4.2V.
  • 3
    Flashing the Attiny 13A

    As for the brain of this project, we used Attiny13A here, which will be programmed using our previously made Arduino as an ISP shield.

    https://www.hackster.io/Arnov_Sharma_makes/multiple-attiny85-13a-programmer-84adf8

    Here, we added the circuit to the programming shield by placing the programming CON6 header pins with the CON6 header pins of the mainboard.

    • Next, we install the Attiny13 Core files for Arduino by going to the below link.

    https://github.com/MCUdude/MicroCore

    • After installing and setting up the core files, we go to the tool menu and select the Attiny13 on board. We set the B.O.D to 1.8V and selected the programmer as "Arduino as ISP.".
    • We then burn the bootloader, which takes up to 30 seconds to burn.
    • Once the bootloader has been burned, we select "Upload using programmer" from the sketch menu to upload the sketch to Attiny13. The ISP flashing method does not support the regular upload method.

View all 6 instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates