Morse-Code   |     home
MyPic32 Phase1 Logs   |   MyPic32 Phase II Logs   |   MyPic32 Phase 3 Logs   |   BUMS @ ESC 2009 Silicon Valley
MyPic32 Phase 3 Logs
Well I made to phase 3 thanks for the votes I got and the Judges who picked my project to be part of the top 32. I finally got all the prize packages from the sponsors and now that I have my Full Version of the C32 Compiler I can continue to work on my projects code....

So far in this phase, it has been really time consuming writing a lot of code, especially when I have to learn everything as I progress through this phase. But I have made time to finish up the water valves I needed to automatically adjust the showers water temperature. I searched and searched and even asked some valve manufacturers for some advice and no one can give me an answer if these things actually exist in the market. So I did what I do best, made my own....
12/13/2008
I ended up designing these valves around some off the shelf cpvc type valves. They are cheap and readily available at your local hardware store. I will need 2 of these valve assemblies to complete the BUMS unit, since I need one for the cold water and one for the hot water.

Each valve is driven by a NEMA 23 type stepper motor, which has 180oz of tourqe per inch, and capable of 1.8 degree steps, so that would give me about 200 steps per revolution. I ended up doing a 4 to 1 ratio on the drive pulleys so that way the motor wont have to "work" as hard to get the valve turning.... with the 4:1 ratio, that gives me about 800 steps or positions the valves can be in, so that gives me some pretty good control of the flow of water.
I custom designed the mounting bracket for each valve out of 16 gauge Galvanized sheet steel. The valves can be easily replaced if needed, just have to loosen up the drive belt via the motor mount and remove the front bracket which is held on by one 8-32 machine screw.
The water connections for the unit are designed to be removable, in case you needed to service the valves, it makes it much easier with the quick disconnect couplers.
I used some timing belts and pulleys for the drive system, hoping that this would reduce any slippage of the belts and also to provide more traction than a standard belt drive.
I then combined the 2 separate valve systems to form one unit for ease of mounting.
I left plenty of room for acessing each component, to make it easier for servicing the units if needed...
I just need to pick up another valve (should have gotten both while I was there!!) and I will have this unit completed, and all I need to finish is the controlling PCBS for these units, which will be based on Microchips PIC16F84A Microcontroller which will control the stepping sequence of the motors, all the pic32 has to do is tell it to step and in what direction. The temperature sensor and some Hall effect sensors will be incorporated into this device, the Hall Effects will be used for verifying position of the valves...

Besides the Valve system, I have also been working on adding Ethernet conectivity to the BUM system, I decided to scrap the 433Mhz Transceiver Idea and use ethernet instead, although I left the capabilities for the 433 Mhz transceivers in the system so I can still use that if needed.
Top module is the 433Mhz transceiver module for the BUM System, and the bottom module is the 433Mhz transceiver module for the PC side application.
I also have the RFID Interrogator module working and have all the code for reading and verifying the users ID tag all finished up.
The SD card socket doesnt look as pretty as it is functional, I didnt have time to make a PCB for this module but I managed to get it all working on a prototyping breadboard. I have the file system up and running also....
atleast the front is a little neater than the backside of this module..(lol)
I decided to scrap the 433 Mhz transceivers for the ENC28J60 Standalone ethernet controller IC by Microchip... This will give the system more flexibility and give me the ability to access the system as long as I have internet connectivity available to make changes or update setting on the BUM System.
I decide to make a PCB for this module anyway, (so much for not having to make one for the IC!!) just so I could intergrate the 3.3 volt regulator to supply the module with power. I had bought the premade module from MDFly.com just so I wouldnt have to make a PCB for this unit, since I am running out of time for this phase and I need to spend more time on the software.

02/21/2009

Finally had time to make the PCB's for the Stepper motor controllers.... these are the controllers after mounting all  the components, except for the PIC16F84A's that I still have to dig up and program, and the heatsinks are not in place yet....
These are the completed controller modules with heatsinks and Pic's, I ended up machining my own aluminum heatsinks to fit my application...
These are pics of the completed dual valve system....
One valve is for the cold water supply and the other is for the hot supply, with this setup I can control the flow of the water and adjust the temperature to whatever the user sets it to automatically!!

With phase 3 complete, I have almost al functionality done to the system, It is DHCP enabled with a HTTP BSD Server and also able to send out SNMP packets..... System admins can make system settings on a PC side application to enable/disable any of the components on the system, and also configure user settings such as temperature for the shower, etc. The system can also be enabled to require a user to scan an RF ID tag to enable the shower....Below is a screen shot of the settings editor app.

below is a screenshot of the web server index html...



Stay Tuned.... More to come.......