If I only had a Brain!

Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.
Well what I was planning to do is connect the LCD power to the Lamp power. So assuming that your other components can be turned on just by applying power... incorporating a switched outlet for components outside of the projector could turn them on, if, you only wanted them to come on when the lamp was energized.

Oh Wait... that wont work....

During the boot phase, the controller energizes the ballast, then looks for light from the lamp. It has to see steady light from the lamp (for 20 seconds) to consider the lamp officially on. If it energizes the lamp, but doesnt see light, or sees unstable light, it Removes energy from the ballast and pauses for 20 seconds (fans still running), then starts the cycle over again.

What you would need would be a second relay closure that activates once the projector is officially in the RUNNING mode to power your other devices. Then when the running mode is exited (for whatever reason) that relay deactivates.
 
device activation

Actually, all my other video and audio devices are always powered. Applying AC power to them would just put them in the idle state. But they all do have IR remote controls, so a microprocessor-based projector controller could turn them all on and select the right settings by driving a single IR LED with the right commands.
 
I did some experimentation a while back using a PIC to record/playback IR pulses from/to IR controlled devices... I was able to get it to work, but the problem I ran into was that every device (receiver/etc) gives some form of visual feedback to let the user know what state its in... this is impossible to get a controller to understand (without hardwiring the controller to the internals of the device), so you end up having to do some funky things in order to make sure the device is in the state the controller expects it to be in... It could work just for simple on/off though.


Well anyway, I modified the code to take into consideration a Button Press vs a Press and Hold... I just have a few bugs to work out before the weekend so hopefully I can do a real world test.

Im still considering adding a 120VAC relay activation that only triggers when the running mode is entered, and deactivated when the running mode is exited, I think connecting the LCD AC power to that would be better than connecting it to the Lamp AC which can get cycled on/off several times during boot mode.

Ive also been thinking about a Fans Only On mode... where you could turn on nothing but the fans and let them run as long as you wanted. Maybe what I could do is if you Press the power button in shutdown mode, you would enter Fans Only On mode.... but if you Press and Hold in shutdown mode, you would enter Booting mode.... We'll see :smash:
 
Latest update...

I added the Fans Only On mode, so if the controller is in standby mode, and you press the power button it goes into Fans Only On mode.If you Press and Hold in standby mode you go to boot mode. If you press the power button in Fans Only On Mode you enter Boot Mode. If you Press and Hold in this mode you go to back to standby mode.

I also built a board.

I used a point to point soldering method on a piece of perf board with solder points, to wire up a board. I used wire wrap wire to make the connections.

I connected all the IO devices (Power Button/LEDS/Light Detector/Motion Detector/Fans/Lamp SSR/etc), and powered it up and guess what?

ITS WORKING!!!!

I only have one small problem.... for some reason my DANG buzzer gets hot!

Im using 12 volts (controlled via MOSFETS) to drive the buzzer and the fan circuits. I think the problem is that my buzzer is a transducer instead of a piezo buzzer...

...sigh...

I guess I wont have an In Projector test this weekend.... :(

Oh Well! :smash:
 
Minor Setback....

Some way I managed to blow my PIC16876! With it in the board I built, the 7805 regulator gets really hot really quick!

Oh well... I removed it, and after troubleshooting the problem with the pic (and nearly completely rewiring the board), I replaced it with a PIC 16F873....

So now Im back up and running with a working board.

This weekend its going into that dang projector if it kills me!

Luckily I never really "Finished" my projector (Im waiting on that new long throw lens thats coming out) The projector works, and gives a killer picture... but isnt all pretty like... so I wont have to worry about busting up a completed projector to install the P-Brain into it.

Im working on some pics.... unfortunately A) My ex girlfriend stole my digital camera (It was a cheapo gift so Im not worried about it) B) Before she took it, I wasnt able to find the cable to connect it to one of my Computers to download images anyway... :(


Oh Well... Its going to be really cool not to have to worry about shutting the PJ off if I decide to make a quick trip to the store....

Another couple of quick features Im considering: 1) If the lamp goes off at any time, the controller shuts down the PJ. 2) Adding a general purpose cut off that if it is ever activated will cause the PJ to shut off. This will let me eventually tie in a smoke alarm or other detector to the shutdown program. 3) A Running Mode activated Relay... which gets activated only when the controller enters Running Mode, and gets deactivated when the running more is exited.... I should do this one now....

On to next weekend! :smash:
 
Ok...

I added the Running Mode Relay...

This is a 120vac Solid State Relay that gets activated only during Running Mode.... When running mode is exited for whatever reason the relay is deactivated. I think I will connect the power to my LCD to this relay instead of connecting it to the LAMP power relay...

Man Ive got to get another Wire Wrap Gun!!! Point to point soldering SUCKS!

Question:

Ive been considering developing a User Interface for the P-Brain. It would be used to set parameters show status/errors/etc

Im thinking either A) Making it self contained by using a character based LCD, and a keypad/array of buttons, or B) Implementing a serial interface that can be attached to a PC where you can run a PC based GUI (with the P-Brain attached to your serial port) to configure the controller/read stats.

Which would be better? Both Right? Hahhahahahahaha :)

My last test is to see how everything behaves with the 120vac coursing through the circuitry.... Until now, everything has been simulated in my development environment without actually connecting 12vac loads to the SSRs. I doubt this will be a problem though.... The 120vac loads will generate electromagnetic spikes, however, I dont thing those pulses will be enough to freak out the controller. Im using $20.00 solid state relays for AC voltage control.... I didnt measure the current draw on the lamp, or the LCD though... I know the LCD draw will be minimal, but I dont know about the Lamp. DAMN! If I had another electronic ballast and lamp setup I could do a real test... Oh well.... maybe Ill try attaching some other 120vac appliances and see how the P-Brain performs with an AC load...

:smash:
 
lamp current

The lamp circuit's average line current will be about what you would expect, from the wattage:

250 Watts / 120 Volts = 2.08 Amps
400 Watts / 120 Volts = 3.33 Amps

(Of course, those are average RMS amps, since it is AC.)

If the ballast is 80% efficient, then you divide each of those values by 0.80 to get the total current. The ballast will probably kick a spike back into the line on each half cycle, like a fluorescent ballast. I would use a solid state relay that can handle an inductive load (e.g. a refrigeration compressor), to avoid damage from these spikes. Or maybe a 600 volt triac.
 
The SSRs Im using are rated at 120vac @ 3Amps so I should be ok there.

Now comes the hard part.... embedding this into the projector.

The way my projector is designed, (Horizontal/straight through) I have all of the electronics in an isolated "crawl space" under the projector, and the connections to the lamp/fans/etc are via holes drilled through the bottom, so the controller board will go under there too.
 
Ok... got the camera back from the X!!!

Time for some pictures...

Here is the P-Brain

Shown... on the far left is the Wired motion detector I ripped off of my Security system. Next to that is the Piezo Buzzer and the Power switch (big red button).... then a bunch of wires for other stuff (fans/light detector/power LED, running mode LED/etc) then on the right is the P-Brain board which basically contains the PIC controller, a realtime clock chip (DS1302), a few voltage regulators, a few Mosfets, and the SSRs.



Only thing Im "Worried" about at this point is... it takes a bit of motion to trigger this motion detector. My hopes were to just be able to wave an arm to trigger it, but depending upon its position, it may take more than an arm wave to trigger it. If push comes to shove... Ill just integrate a wireless detector so that I can place the detector wherever I want instead of near/on the projector.


Sorry about the bad pics.... Remember... this is only a Prototype
 
why does it take a idiot like me to solve world problems i have no idea.!!!

all you have to do is.......

1...get a fast battery charger (small one) (9v?)
2...get a battery (9v?)
3...get a small fan (4v?)
4...get a resistor (ohm?

now i'm planning to sell my pjs so.......when all power is switched off the battery will keep running the fan at a slow speed due to resist untill the battery is flat. when pj is swtiched on battery should charge at a faster rate than it is being drained!!!

i dont see any flaws in my plan....please tell me if u do thanx have a nice day!
 
theoretically good, but...

There is no such thing as a perfect battery! Most batteries do not do very well if you run them until they are flat. (Especially lead-acid.) Better to include a relay that keeps itself turned on and the fan running, until the battery reaches the drop-out voltage. Then the relay will release and cut off the battery.

Now the only problem is finding a battery that you can recharge lots of times.

The simplest solution is probably to use a supercap to run the fan. Then the charger circuit consists of one current-limiting resistor (so the power supply doesn't pop a fuse on startup.) You can discharge a supercap all the way down to zero as many times as you like. Exercise for the student: How long can a 1 Farad supercap keep a 12 VDC 12 Watt fan running? :D
 
Holy ****! I never heard of a supercap before. I've only used ceramic disk and electrolytic capacitors. I remember in either an E&M or circuits course being asked to approximate the size of a parallel plate capacitor in vacuo needed for 1 F and it being something on the order of a football field.
 
a good battery??? lithium ion battery can be charged many times and they have no memory!! so u tell me! relays, circuitary etc... dont get me wrong i'm a engineer but theres no need to complicate things! looks like the cooling unit is more complicated than the actual pj itself!! hehe:smash: :smash:
 
looks like the cooling unit is more complicated than the actual pj itself!!

What you are missing, is that even in the first "Prototype" release.... the P-Brain is more than a simple "cooling" unit. Its a DIY Projector Control System. Powering the fans is only one feature... future releases will include things like fan speed controll, fan fault detection, temperature measurement, bulb life counter, among others....

Sure anyone can get the fans to run for some period after the projector power is shutdown using very simple means. A rechargeable battery/supercap/etc can easily do this if thats the ONLY thing you wanted to do...

However, if you then later decided you wanted to regulate fan speed based on temperature (lower fan speed unless things are getting hot) you would have to build a completely different solution. Before you knew it, you would have several unintegrated discreet solutions. By using a microcontroller from the start, I am setting up a flexible, integrated, platform that I will be able to update/add features to/etc just by adding minimal external circuitry, and modifying the code...

For example: for me to add fan fault detection, and temperature based/fan speed regulation functionality to the controller...all I have to do is..

1) Use 3 wire fans (ones with a tachometer output)
2) Add a temp sensor connected to an A/D converter (or use a ds1620 or similar chip)
3) Modifiy the code to read the new inputs and produce the new outputs.
 
the whole idea of building your own pj is thats its SIMPLE! now if your going to sell it (like me) you need to make it idiot proof. and cheap!

if your going to use it yourself sod all the fan regulator, speed control temp sensor etc.... just leave the fan switches alone ofr 30 mins! problem solved!have a nice day:nod:
 
Did you read any of this thread?

The original intent for embedding a controller, was to have an automatic way to shut the projector down if left unattended (accidentally or otherwise). The Fan control funtionality/etc are just goodies added into the mix because since a Microcontroller is being used its easy to incorporate this kind of stuff...


the whole idea of building your own pj is thats its SIMPLE! now if your going to sell it (like me) you need to make it idiot proof.

The idea of adding a controller to a DIY projector is definitely a step towards making it "idiot proof", and safer... (at least for dummies like me who tend to fall asleep with the PJ on, or leave the house with it running) the controller does all the "thinking" all I need to do is push the power button.
 
dude if your pj BURNS down due to it being left on can ONLY BE A FEW THINGS....

1...very very badly designed pj (yours, not mine)
2...a REAL idiot to leave a super bright, expensive piece of toy running and leave his house and go on vacation??

thats all i could think of at the mo........look at it this way you have 3 fans running in your pj anyway! get a fourth and place in next to your transformer and bulb (if possible) beacuse heat rises and when a pj is switched off those are the only elements that could posssible damage your lens or lcd etc..............

please reply
 
dj_holmes said:
dude if your pj BURNS down due to it being left on can ONLY BE A FEW THINGS....

1...very very badly designed pj (yours, not mine)
2...a REAL idiot to leave a super bright, expensive piece of toy running and leave his house and go on vacation??

thats all i could think of at the mo........look at it this way you have 3 fans running in your pj anyway! get a fourth and place in next to your transformer and bulb (if possible) beacuse heat rises and when a pj is switched off those are the only elements that could posssible damage your lens or lcd etc..............

please reply

Ummmm errr uh.... Dude....Its not about burning down...Its obvious you just dont get it, and have nothing to contribute... see ya.
 
Ok... Here's one of the P-Brain mounted on the bottom of the projector...

In the picture from left to right are The ICECAP Ballast, the Controller Board for the LCD, and the P-Brain controller board...



Now all I have to do is wire it up, to the LCD, the LAMP, and the FANS... then mount the indicators, light detector, motion detector, and the power switch/etc.
 
Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.