Saturday, January 8, 2022

How to Add, Use and Interface RTC DS3231 DS3232 Module to Proteus 8 | Simulation | Circuit

Today, I will share how to add, use and interface the RTC DS3231 and DS3232 in Proteus 8 software. In Proteus 8, no IC DS3231 is found in the library, so I used IC DS3232 since it is very similar to the IC DS3231. The typical circuit is based on the RTC ZS-042 module, including IC DS3231 and I²C EEPROM 24C32. The basic circuit is used for simulation purposes in proteus only. A simple library (Rtc by Makuna) that makes interfacing DS1302, DS1307, DS3231, and DS3234 Real Time Clock modules was created by Michael C. Miller. 


References:

Components:

  1. Arduino UNO R3
  2. Cell
  3. Resistor
  4. LED
  5. IC DS3232 or DS3231
  6. IC 24C32A
  7. Diode

Steps (Typical Circuit):
  1. Open your Proteus software and add ARDUINO UNO R3, CELL, RESISTOR, LED, DS3232,  24C32A, VIRTUAL TERMINAL, and DIODE components to the workspace for the typical circuit.


  2. Connect VBAT to diode negative and positive to a resistor (200Ω). Then, the resistor (200Ω) is connected to the POWER. Next, connect POWER  to LED positive to the POWER and negative to a resistor (1kΩ). The resistor (1kΩ) is connected to the GND and VBAT to cell positive and negative to GND.


  3. Connect DEFAULT to the IC DS3232 pins SCL, SDA, 32KHz, and INT/SQW. Edit DEFAULT of IC DS3232 string according to the pins name of IC DS3232. Then, connect the pull-up resistor (4.7kΩ) to the IC DS3232 pins SCL, SDA, 32KHz, and INT/SQW. 


  4. Connect DEFAULT to the IC 24C32A SCL and SDA pins. Edit DEFAULT string of SCK and SDA to the SCL and SDL. Then, connect the WP pin to the GND. Then, connect the pull-up resistor (4.7kΩ) to the IC 24C32A pins A0, A1, and A2. 


  5. Connect switch (N/O)  to the IC 24C32A pins A0, A1, and A2. Then connect the switch to the GND.


  6. Connect DEFAULT to the A4, A5, and 2 pins of the Arduino UNO R3. Edit DEFAULT string Arduino UNO R3 pins A4, A5, and 2 to the SDA, SCL, and SQW. Lastly, connect VIRTUAL TERMINAL RXD and TXD to the  ARDUINO UNO R3 pins 1 and 0.


  7. Open Arduino IDE and go to Sketch > Include Library > Manage Libraries. Type 'Rtc by Makuna' on the search box and install it.


  8. Go to File > Examples > Rtc by Makuna > DS3231_Simple. Verify and copy the Hex file, then paste it into the Project file Arduino board.




  9. Start the simulation, and the VIRTUAL TERMINAL will display the date, time, and temperature. For the first time,  you will see VIRTUAL TERMINAL print "RTC lost confidence in the DateTime!". It will automatically update the date, time, and temperature every 10 seconds.


  10. To change the temperature in simulation, go to IC DS3232 > Double Click > Nominal Temperature > Change to your desired temperature > Press OK.


  11. Start the simulation and see the temperature change to the desired temperature.


Steps (Basic Circuit):
  1. For basic circuit simulation, remove all components except Arduino UNO R3 with DEFAULT pins, Virtual Terminal, and IC DS3232 with DEFAULT pins.


  2. Start the simulation, and the VIRTUAL TERMINAL will print out the same as the typical circuit simulation.


  3. Change the temperature to test out and start the simulation again.


Video:


If you have any suggestions, please write in the comment section. Thank you for your time 👷.

Monday, January 3, 2022

Adjustable 2 Jaws Bearing Puller Tool Carbon Steel | Rama Claw | Remover | Review

I ordered 2 jaws bearing pullers (Rama claws) from the online retailer, and I reviewed this tool today. The jaw puller is used to pull off the bearings, couplings, gears, armature, and pulley without damaging them. For your information, this post is not sponsored.



Review 2 Jaws Puller

  1. I bought a 4" or 100 mm 2 jaws puller from an online retailer. It comes in many sizes, 2" up to 10 " or 50 mm to 250mm.
  2. The center bolt threads are designed for less effort when applying high torque. The crossbar bolt is removable to fit the part to remove, and the material used is high-carbon steel, and the color is black.
Step 2: Test
  1. For testing purposes, I gonna remove the bearing ceiling fan from the shaft.


  2. First, select the proper size of 2 jaw pullers and fit the bearing or the part to be removed.


  3. I slide the spanner to the shaft since my shaft hole is bigger than the center bolt to prevent it from losing when fitted. Turn the center bolt until it touches the center shaft or spanner.


  4. Fit the crossbar tightly.


  5. In my case, I turn the center bolt slowly and carefully, applying force onto the shaft or spanner.


  6. When the pulling part or bearing is off from the shaft, remove the 2 jaws puller.


  7. No damage to the bearing and shaft after removal.



The link tools and components replacement I used in this video are listed below:

Tools/Components/Items (Shopee):

  1. Screwdriver Set
  2. Plier Set
  3. Jaws Puller (4 Inches)
  4. Spanner Set
  5. Bearing (6203ZZ)

Tools/Components/Items (Lazada):
Video:


That's all from me. If you have any suggestions, please write in the comment section. Thank you for your time 👷.