Notices
Audio & Video 350Z Mobile entertainment and other electronics

motorized nav cubby question

Thread Tools
 
Search this Thread
 
Old 10-13-2006, 09:30 AM
  #61  
KPierson
Banned
iTrader: (1)
 
KPierson's Avatar
 
Join Date: Feb 2004
Location: Dayton, OH
Posts: 2,128
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by Acree
I had a feeling that's what was going to happen. I want this thing for my OWN car.

KP - Willing to help on the code side? I started doing assembly about 3 months ago. I'm a newb. I'll admit it.

-Acree
I would be open to that. I just need to know what needs to be done.

I can supply preprogrammed chips without any problems.
Old 10-13-2006, 10:08 AM
  #62  
Acree
Registered User
iTrader: (29)
 
Acree's Avatar
 
Join Date: Jun 2003
Location: DFW
Posts: 2,342
Likes: 0
Received 1 Like on 1 Post
Default

Originally Posted by KPierson
I would be open to that. I just need to know what needs to be done.

I can supply preprogrammed chips without any problems.
Awesome. I would definitely be interested in that. I WOULD make it with my own chips, but it took me forever and a day to get the code written for my turn signals. I haven't even begun to mess with input signal coding.

-Acree
Old 10-13-2006, 01:55 PM
  #63  
SpinOut123
Registered User
 
SpinOut123's Avatar
 
Join Date: Mar 2006
Location: So Cal
Posts: 5
Likes: 0
Received 0 Likes on 0 Posts
Default

Why would you need to write code for your turn signals if you don't mind me asking.
Old 10-13-2006, 01:59 PM
  #64  
KPierson
Banned
iTrader: (1)
 
KPierson's Avatar
 
Join Date: Feb 2004
Location: Dayton, OH
Posts: 2,128
Likes: 0
Received 0 Likes on 0 Posts
Default

Like I said, just let me know what you want it to do and I can have it done in a few hours and send you some samples for you to test.
Old 10-15-2006, 12:49 AM
  #65  
Acree
Registered User
iTrader: (29)
 
Acree's Avatar
 
Join Date: Jun 2003
Location: DFW
Posts: 2,342
Likes: 0
Received 1 Like on 1 Post
Default

Originally Posted by SpinOut123
Why would you need to write code for your turn signals if you don't mind me asking.
Instead of making a complex circuit made with output drivers and 555 timers and SCRs, I can program a chip to do everything I want it to. It simplifies the circuit board, and it gives me infinite control over the signals. If I want to, now I could just change a few lines of code and make the signals come on the opposite direction. Or, I could make 3 sections come on at a time. (If you didn't know, I've made my own sequential led turn signals. But you're right, you don't need code for one bulb )


Originally Posted by KPierson
Like I said, just let me know what you want it to do and I can have it done in a few hours and send you some samples for you to test.
Actually I need code examples. I would like to use my own chips. I am using Microchips PIC controllers. I am assuming the coding is different. Can you pm me just a sample input/output code? Something that would take in an input to open the door from say, starting the car. Then another input from the button. It would need to remember what it's current state is, even while off. So if you have the door open while the car is running, it would automatically shut when you turn the car off, and then remember to open again when the car starts again. Or, if you have the door shut, it would remain closed when you kill the car, and then remember to stay closed the next time the car is turned on. Then when the button is pressed, it would simply change the current state of the door from being closed to open or open to closed.

-Acree
Old 10-15-2006, 08:18 AM
  #66  
KPierson
Banned
iTrader: (1)
 
KPierson's Avatar
 
Join Date: Feb 2004
Location: Dayton, OH
Posts: 2,128
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by Acree
Actually I need code examples. I would like to use my own chips. I am using Microchips PIC controllers. I am assuming the coding is different. Can you pm me just a sample input/output code? Something that would take in an input to open the door from say, starting the car. Then another input from the button. It would need to remember what it's current state is, even while off. So if you have the door open while the car is running, it would automatically shut when you turn the car off, and then remember to open again when the car starts again. Or, if you have the door shut, it would remain closed when you kill the car, and then remember to stay closed the next time the car is turned on. Then when the button is pressed, it would simply change the current state of the door from being closed to open or open to closed.

-Acree
KPtechnologies exclusively uses Atmel microcontrollers. The coding will be similar, but different.

If you want to 'remember' the state you can go about it in two ways, using EEProm memory or power the chip up at all times.

As far as inputs go, with the Atmel chips your inputs are set up on 8 bit ports. You can check each individual bit independently and skip instructions based on the state. Basically, if the ignition is on branch to 'check if door should be open' routine, if it is off jump to other routine. I have no experiance with PICs so I'm not sure if that's how they do inputs.
Old 10-20-2006, 07:41 AM
  #67  
SpinOut123
Registered User
 
SpinOut123's Avatar
 
Join Date: Mar 2006
Location: So Cal
Posts: 5
Likes: 0
Received 0 Likes on 0 Posts
Default

I got a little lazy in my code and wiring. I wired the door through the connector of the ciggy lighter and told it to just open the door as soon as its powered up. Later, when I rewire my whole carputer, I will make it also close when the ign is killed.

But you do need an output driver (can't drive the motor from port pins, too much current), Relays (to switch the direction of the motor and to enable it) and a nand chip (to invert port pins because they are usually high on startup and will probably drive an output relay undesirably). You wouldn't need to power the circuit at all times if you have some kind of flash memory.

I lucked out on building the circuit. I just used one of my old prototypes from work and just added a few wires.

If you guys need suggestions, I'd be glad to help but I'm not gonna give up my code and hardware design.
Old 10-20-2006, 07:52 AM
  #68  
minispider
Registered User
iTrader: (9)
 
minispider's Avatar
 
Join Date: Jul 2004
Location: Pembroke Pines, Fl
Posts: 677
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by SpinOut123
I got a little lazy in my code and wiring. I wired the door through the connector of the ciggy lighter and told it to just open the door as soon as its powered up. Later, when I rewire my whole carputer, I will make it also close when the ign is killed.

But you do need an output driver (can't drive the motor from port pins, too much current), Relays (to switch the direction of the motor and to enable it) and a nand chip (to invert port pins because they are usually high on startup and will probably drive an output relay undesirably). You wouldn't need to power the circuit at all times if you have some kind of flash memory.

I lucked out on building the circuit. I just used one of my old prototypes from work and just added a few wires.

If you guys need suggestions, I'd be glad to help but I'm not gonna give up my code and hardware design.

so...can I buy a circuit?
Old 10-20-2006, 08:16 AM
  #69  
deviljon
Registered User
iTrader: (50)
 
deviljon's Avatar
 
Join Date: Jan 2006
Location: socal
Posts: 11,698
Likes: 0
Received 0 Likes on 0 Posts
Default

i'd be interested in buying a motorized cubby door for my 06
Old 10-20-2006, 08:32 AM
  #70  
KPierson
Banned
iTrader: (1)
 
KPierson's Avatar
 
Join Date: Feb 2004
Location: Dayton, OH
Posts: 2,128
Likes: 0
Received 0 Likes on 0 Posts
Default

My planned prototype had a uC, three transistors, 2 relays, and supporting resistors and diodes.

One transistor to monitor ignition power, and two transistors to drive relays to go open and closed. The relays would be SPDT, low current relays (1A or so, but testing would have to be done to verify this).

I don't think you have to worry about the inverter, even if the uC does start up in an undesirable state it will only stay there until the chip is through its initialization which should take less then 0.01 seconds, which wouldn't be long enough to actually fire the relay.

Add to this the necesarry power supply components and some code and that would be it.
Old 10-20-2006, 11:00 AM
  #71  
Acree
Registered User
iTrader: (29)
 
Acree's Avatar
 
Join Date: Jun 2003
Location: DFW
Posts: 2,342
Likes: 0
Received 1 Like on 1 Post
Default

KP - That's about what I have planned. I'm currently up the without a paddle. My programmer bit the dust and it's taken me a week to get microchips to send me a new one. It should be here tomorrow. And on top of that, my computer crashed and I lost all the code to my turn signals, and the code I was working on for the nav door. F*ck! So I will hopefully have this thing back in a couple of weeks.

My design was heading towards something like what you described. I wouldn't need the inverter since the chip I use can be driven low or high. But I'm curious, how would your first transistor "monitor" the ignition power?

-Acree
Old 10-21-2006, 07:00 PM
  #72  
KPierson
Banned
iTrader: (1)
 
KPierson's Avatar
 
Join Date: Feb 2004
Location: Dayton, OH
Posts: 2,128
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by Acree
KP - That's about what I have planned. I'm currently up the without a paddle. My programmer bit the dust and it's taken me a week to get microchips to send me a new one. It should be here tomorrow. And on top of that, my computer crashed and I lost all the code to my turn signals, and the code I was working on for the nav door. F*ck! So I will hopefully have this thing back in a couple of weeks.

My design was heading towards something like what you described. I wouldn't need the inverter since the chip I use can be driven low or high. But I'm curious, how would your first transistor "monitor" the ignition power?

-Acree
You would run constant power and ground to the chip, so that it is always powered. You would then want to know when the ignition is on, so that you can open and close the door accordingly. The ignition is a 12vdc signal, the chip is a 5vdc device. The transistor would be used to interface the different 'logic' levels.
Old 10-23-2006, 06:19 AM
  #73  
SpinOut123
Registered User
 
SpinOut123's Avatar
 
Join Date: Mar 2006
Location: So Cal
Posts: 5
Likes: 0
Received 0 Likes on 0 Posts
Default

Sorry, don't think I'd be selling the chip because I used some old hardware I had laying around at work. I would have to do a new board layout, have the boards made and populated. This would get expensive real quick. Plus, the life of electronics in the automotive environment is relatively short and would hate to have a bunch of people upset at me over broken chips after a few months.

Yes, the Relays do use very little current (much less than 1A for both DPDT (1 could have been SPST) relays, the motor and the circuit).

The code is very basic. Any 1st year programmer could write it as long as they knew how to declare the proper port pins in the code. Its all "if then" and "if else" statements.
Old 10-23-2006, 01:56 PM
  #74  
Acree
Registered User
iTrader: (29)
 
Acree's Avatar
 
Join Date: Jun 2003
Location: DFW
Posts: 2,342
Likes: 0
Received 1 Like on 1 Post
Default

I think I'm going to try and tackle this thing. Thanks for the info guys.

-Acree
Old 01-19-2007, 12:53 PM
  #75  
bb1314
da Terminator!
iTrader: (62)
 
bb1314's Avatar
 
Join Date: Apr 2006
Location: Rockville, MD
Posts: 9,299
Likes: 0
Received 1 Like on 1 Post
Default

Any news on this?
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
XM 1
Engine & Drivetrain
29
07-10-2022 07:44 AM
MM'08_350Z
VQ35HR
225
04-22-2021 09:42 PM
ars88
Zs & Gs For Sale
18
04-04-2016 07:52 AM



Quick Reply: motorized nav cubby question



All times are GMT -8. The time now is 03:34 AM.