Most of us travel with a limited set of clothes while traveling and giving them to the laundry is not always viable. I have tried the hair dryer to dry clothes and it works. However one cannot keep holding the hair dryer for long in the switched on condition as it can burn the circuitry of the gadget. What If I would control the switching On and off of the hair dryer in such a way that it remains on for a set duration of time and then switch off for another set duration of time so that it cools off and does not get over heated. This would do the trick and turn the simple hair dryer into an all season clothes dryer. I could also use it to dry food,spices,leaves and condiments saving a lot of time,money,efforts and energy.
Get the Software's for development here
Start by connecting the FRDM-K82F to your computer using the usb port.
Step 1 Open Kinetic Design Studio
Step 2: Create your project in KDSK Project generator (You can get the tool from here
3)Go back to KDS (Kinetis Design Studio)
File>Import
click on Existing Projects Sets
4) Import the project that you have created. In my case I imported "myClothesDryer"
5) For the next step we work within the Project Navigation Window and locate the sources folder.open this to find main.c
Paste the code from main.c that you would find under code section to main.c of your project.
Next you are need to paste the code from pin_mux.c in from the code segment that you would find on this page to pin_mux.c of your project.
To locate pin_mux.c of your project :
right click over your project folder>In the window that pops up scroll down to the bottom of the page to reach properties.
Select and copy the path leaving out kds
in my case location is "C:\nxp\SDK_2.0_FRDM-K82F\boards\frdmk82f\user_apps\myClothesDryer\kds"
so I leave out kds and select
C:\nxp\SDK_2.0_FRDM-K82F\boards\frdmk82f\user_apps\myClothesDryer\
This is the location that we need to open by going to
File>Open File>
and pasting this path "C:\nxp\SDK_2.0_FRDM-K82F\boards\frdmk82f\user_apps\myClothesDryer\"
and click open.
You would be able to find the pin_mux.c there
open it and paste the code from the code provided in pin_mux.c in the code section of this document to the pin_mux.c of your project.
6) build the project from the Project >build project menu or right click over the project folder and select build project
The project bulid should get built without any errors.
7)Next Debug the configuration by following the image
from the bug icon> select Debug Configuration
from the
7b)Tera Term can be used to view the outcome of the program as the console make the following setting marked in red box
Open a serial terminal with these settings:
baud rate 115200
Data: 8 nit
Parity:None
Stop 1 bit
Flow control none
In the debug window of kds click the play button as marked in the image below
you should start getting the timer reading on the console as follows
It means we are good to go to the next step that is to connect our relay and our hair dryer
It is a good practice to check the signal voltages before I wire up the devices.
I insert paper Pins to help make contact with the pins as my multi meter pins would not be able to make contact directly.
So I check the voltage between ground and PCB16 This is the pin We had configured as output for the signal
Let us also check the voltage between the ground and Vcc (This also helps us locate the pin before we hard wire our device)
Now let us connect as shown in figure below
FRDM-K82F Side Relay Side
GND(Ground) GND(Ground)
5V Vcc
PTB16 In
These connections take care of the signals
Now Let us connect the Relay to the hair dryer and the A.C 220 voltage.
Use a line Tester to find the live/Hot /Phase of the A.C Mains
FOR MAKING THE CONNECTION MAKE SURE THAT THE POWER IS SWITCHED OFF FOR THE A.C
Use a wire to connect the phase to "No" terminal of the relay
The other wire from the mains goes to the hair dryer
Connect a wire from com of the Relay to the hair dryer.
This completes the circuit.
Now lets run it
Power up the Freedom board using the USB port of computer
After the clock counter runs its course (45 sec as I have set in main.c)
The Relay switches off the dryer for 90 sec .In case you wish to set the on and off time you can do so in main.c
When the relay is on the hair dryer is on and when it goes off it switches off the hair dryer
Now the only issue that remains is how to hold the dryer straight. For this
I use a hollow cardboard cylinder. This keeps the Hair dryer upright and complete my All season Clothes Dryer.
Now I am ready to take my next trip to see the world...
Comments