What is it?

My project is a Smart Butter Lamp case that will automatically play prayers when a sudden rise in temperature is sensed inside the case when a butter lamp is placed. It will also have a LCD display screen to be able to display a burn timer or if needed it will also display the temperature inside the case. For storing the burn timer for conveinience. My butter lamp case has 4 buttons, One identified as "Store" that will be clicked before recording the burn time in Buttons identified as "A,B, and C"

Your Image Description

Concept mapping

1. How are you going to determine the burning time of a lamp based on its size.

  • When the store button is pressed, the program enters a listening state, waiting for a button press event from buttons A, B, or C. Upon button press detection, the button will start recording until the butter lamp has completed burning. Which means that when bigger butter lamp sizes are placed the time recorded will be for a longer duration and smaller butter lamp sizes will have shorter burn duration. The store button will be pressed when you first place a lamp and the timer will be stopped when you exchange your buttter lamp.

    2. How are you going to use the NTC Thermistor module and where can you buy one?

    I was planning on using the NTC thermistor module as a temperature sensor and to trigger the sound module and sound box. Since the thermistor is able to detect temperature ranging from -44-+200 degree celsius, it will be perfect for my project which needs a sensor that can detect differences in temperature before and after putting the lamp in the glass block enclosure. I will then display the temperature in the LCD screen along with r=the timer. When a strike in temperature is sensed after adding the butter lamp in, I want the NTC thermistor module to send trigger to the sound module to start playing the pre-recorded prayers.

    I was planning on purcahsing a NTC Thermistor module from Amazon

    3. Detail out the Components. List your specific component suggestion.

    Your Image Description
  • Detailed information(Datasheet) on Microcontroller: ATtiny44
  • This is the circuit diagram of the Attiny44(Board)
    Opearting voltage : 2.7-5.5
  • Your Image Description
  • Buttons
  • Your Image Description
  • LCD
    Operating voltage : 5 V
  • Your Image Description
  • NTC20D-9 Thermistor
    -40-+200 degree celsuis
  • Your Image Description
  • ISD1820 Voice Recorder and player
    Operating Voltage: DC 3V-5V.
  • This is how to use and the pinout details of ISD1820(I will not be using it anymore)
  • Where will the prayers be stored (storage device?).

    In the design of the Smart, the prayers will be stored in a sound module. The sound module is a type of electronic device that can store and play audio recordings.It includes memory storage where audio files, in this case, the prayers, are stored digitally. When activated, the sound module plays the stored audio through a speaker.The prayers for the butter lamp will be stored in the memory of the sound module within the overall design. When the system is triggered, the sound module retrieves and plays the pre-recorded prayers. The sound module will be triggered by the NTC Thermistor module, to play the prayers, When the NTC experiencing a strike in the temperature, it will trigger the sound .

    When the store button is pressed, the program enters a listening state, waiting for a button press event from buttons A, B, or C. Upon button press detection, the program shifts to listening for a trigger event from the NTC Thermistor module, sensing a strike in the temperature because of the butter lamp placed..

    Once heat is detected,The sound module is triggered to play the already recorded prayer, alsostarting a timer to record lamp burning duration when the prayers are played and a strike of temperature is experienced. The timer stops when the NTC ceases to send a signal, indicating the lamp's burnout.Recorded time is then temporarily saved on the circuit board and can be overwritten bypressing the store button and pressing the corresponding key, corresponding to the specific button pressed (e.g., button A).

    Who it is going to help?

    The Smart Butter Lamp, designed for Buddhist monks and households, seamlessly blends tradition with modern technology to enhance spiritual practices. In this innovative device, a 9V battery powers a motor for spinning the prayer wheel and plays prayers through the sound module when users are away. Meanwhile, the thermoelectric generator (TEG) takes on a dual role: primarily recharging the 9V battery and functioning as a heat detector. This unique design ensures continuous operation without relying solely on the TEG as the primary power source. The inclusion of a switch allows users to set and monitor the expected duration of the butter lamp, providing a sense of when it will finish burning. The Smart Butter Lamp stands as a purposeful creation, supporting daily rituals and spiritual moments with efficiency and convenience.

    Component Inventory
    Component Inventory(not the final, scroll down for the finalized list)
    NTC Thermistor module 1 NTC Thermistor module
    ISD1820 Voice recording module with sound box 1 ISD1820
    LCD display screen with I2C module 1 LCD display screen
    Button 4 Button
    ATtiny44 1

    Cardbox Prototype

    Your Image Description
    Image 1
    Image 2

    I created this prototype in 3 hours and 15 minutes. I took a lot of time due to limited skills in knowing how to stick cardbox iwth masking tape or any tape for that matter.

    What I concluded and understood by making this prototype:

  • While explaining my project and the role of each components in my device, I undrstood that TEG is not my best option due to my limited knowledge in the functionality of TEG. Even during researching about the component there was no proof of how TEG is worthy of the role in my project.
  • Focus on specifics! I came to conclude that I didnt have much idea of any of the components in my device nor the specifications of each component. I concluded that I needed to do more research on my project and the components and how sure I am that those compoents will work and the pinout of the componets I need to use.
  • Start researching and the designing the fan blade of the prayer wheel and the base of the whole structure since the base is going to be opeable and also be able to hold the whole structure in place.
  • What I learned about the size of my project

    What I originally decided for my project was way too small since I designed in "mm", without considering how small it would be. So I decided to make the size a little bigger but not more than 50cm.

    Changes I decided to make after the prototype

  • Changed the plan of using TEG I decided to use a NTC thermistor module insteaad of a TEG.SO, what is a NTC Thermistor? NTC Thermistor temperature sensor module is low cost, small size module. It is very sensitive to ambient temperature. It is generally used to detect the temperature of the surrounding environment. NTC thermistor is mainly used as a sensor and it met all the requirements of a temperature sensor in my project. It was also able to detect differences in temeprature in the simulation I made in Wokwi.
  • Process of the simulation of the components
  • Image 1
    Image 2

    But there were limited components in wokwi. I had to use a micro SD card to depict a sound module. But luckily they had the exact same NTC Thermistor module I wanted.

    Simulation of components

    Your Image Description

    But it was able to show a simulation of what I wanted the LCD and the NTC thermoistor module to do.

    Circuit drawing

    Image 1
    Image 2

    What I am currently working on

    I have started planning and did the circuit drawing for my Final Project board.

    Your Image Description

    Updates by Week 8 (Electronics Design)

  • Created a possible final project board (Will be making the design again with lesser 0 ohm resistor and a better PCB design )
  • Electronics design

    I deisgned the PCB using the basic circuit of a ATtiny44(from the fab academy site) and the sketch I worked on with Sir Rico a week back as a reference.

    Image 1
    Image 2

    Schematic design(I will be making it with lesser 0 ohm resistor the coming week)

    Image 1
    Image 2

    PCB(I will be making it better and with lesser and better connection next week.)

    Your Image Description

    Programming

    Image 1
    Image 2
    Your Image Description

    Changes I will be making with the board from next week

    • I will be redesigning the PCB with lesser 0 Ohms
    • Solder the pin header for the LCD with the other components for week 9(output devices)
    • Finalize on how I will be powering my board

    Updates by Week 9 (Output devices)

  • Updated components list, changed component for playing prayers and push button, and redesigned circuit board.
  • I changed my plan of using the ISD1820 voice recorder and player because my instructor suggested to explore on something else since the part of recording the prayer wasn't much of a use. I looked into different components for audio players which were not very big in size. I came across this guy on youtube who uses a DF Player. I got intrigued and explored on it. I concluded that the DF player was a much better option because this product is not only affordable but also incredibly user-friendly, making it very easy to use and operate. The use of the audio player and the sound box in my project is simply to play prayers when triggered by the NTC thermistor module which I am not sure if it can be triggered to play audio. But if it does not work, I will simply decide on simplifying my project and installing an extra button to play the prayer.

    DF player and the sound box

    Image 1
    Image 2

    This is the diagram that helped me make the connection for the DF player in my board. I checked the pinouts of the arduino nano and the attiny44 and checked which pin on the arduino nano it was connected to and tried corresponding it to my attiny44.

    Your Image Description

    I designed the schematic and the PCB for the DF player accordingly after deleting the symbol for the pinheader for the ISD1820 voice recorder and player.

    Image 1
    Image 2

    Redesigned Schematic and PCB

    Your Image Description
    Your Image Description

    Components not finalized list

    Component Inventory(not finalized list)
    NTC Thermistor module 1 NTC Thermistor module Operating voltage : 3.3V - 5V
    DF player 1 DF player Operating voltage : 3.3V - 5V
    Sound box 1 Sound box
    LCD display screen with I2C module 1 LCD display screen Operating voltage : 5V
    Button 4 (but one pack of this) Button Operating voltage : 3V - 12V
    ATtiny44 1 Datasheet Operating voltage : 2.7V - 5.5V
    Resistors 2 1K
    Resistors 1 680 ohm
    Resistors 6 0 ohm

    Printed the board

    Your Image Description

    Finished soldering

    Your Image Description

    Testing

    I tested the board to see if it was working, I uploaded the button code

    But..

    but unfortunately when I was connecting the LCD to my board, I noticed I had no SCL pin my connector. And also when I was testing all the buttons, one of the buttons didn't work. So, I had to redesign it again.

    Image 1
    Image 2

    After updates

    Image 1
    Image 2

    After printing

    Your Image Description
    Your Image Description

    I tried programming an LCD I2C and it worked!

    A big change of plans

    I simplified my final project, I decided not to use buttons and the LCD screen since it serves no use for now. But in the future I can plan to enhance my final project. I chose not to use the buttons because there was no use recording the brun timer and storing it. And since I won't be needing the timer for anything having a LCD display is also useless. But since my project requires a input and output device, having a NTC thermistor sensor and the DF player is enough.

    Components finalized list

    Component Inventory(finalized list)
    NTC Thermistor module 1 NTC Thermistor module Operating voltage : 3.3V - 5V
    DF player 1 DF player Operating voltage : 3.3V - 5V
    Sound box 1 Sound box
    ATtiny44 1 Datasheet Operating voltage : 2.7V - 5.5V
    Float glass 1 Float 3mm-float-glass-22432907530 4 feet by 7 feet (3mm), needed is 6 numbers of 23x13x3 glass