Notices
Audio & Video 350Z Mobile entertainment and other electronics

motorized nav cubby question

Thread Tools
 
Search this Thread
 
Old Oct 13, 2006 | 09:30 AM
  #61  
KPierson's Avatar
KPierson
Banned
iTrader: (1)
 
Joined: Feb 2004
Posts: 2,128
Likes: 0
From: Dayton, OH
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.
Reply
Old Oct 13, 2006 | 10:08 AM
  #62  
Acree's Avatar
Acree
Registered User
iTrader: (29)
 
Joined: Jun 2003
Posts: 2,342
Likes: 1
From: DFW
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
Reply
Old Oct 13, 2006 | 01:55 PM
  #63  
SpinOut123's Avatar
SpinOut123
Registered User
 
Joined: Mar 2006
Posts: 5
Likes: 0
From: So Cal
Default

Why would you need to write code for your turn signals if you don't mind me asking.
Reply
Old Oct 13, 2006 | 01:59 PM
  #64  
KPierson's Avatar
KPierson
Banned
iTrader: (1)
 
Joined: Feb 2004
Posts: 2,128
Likes: 0
From: Dayton, OH
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.
Reply
Old Oct 15, 2006 | 12:49 AM
  #65  
Acree's Avatar
Acree
Registered User
iTrader: (29)
 
Joined: Jun 2003
Posts: 2,342
Likes: 1
From: DFW
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
Reply
Old Oct 15, 2006 | 08:18 AM
  #66  
KPierson's Avatar
KPierson
Banned
iTrader: (1)
 
Joined: Feb 2004
Posts: 2,128
Likes: 0
From: Dayton, OH
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.
Reply
Old Oct 20, 2006 | 07:41 AM
  #67  
SpinOut123's Avatar
SpinOut123
Registered User
 
Joined: Mar 2006
Posts: 5
Likes: 0
From: So Cal
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.
Reply
Old Oct 20, 2006 | 07:52 AM
  #68  
minispider's Avatar
minispider
Registered User
iTrader: (9)
 
Joined: Jul 2004
Posts: 677
Likes: 0
From: Pembroke Pines, Fl
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?
Reply
Old Oct 20, 2006 | 08:16 AM
  #69  
deviljon's Avatar
deviljon
Registered User
iTrader: (50)
 
Joined: Jan 2006
Posts: 11,698
Likes: 0
From: socal
Default

i'd be interested in buying a motorized cubby door for my 06
Reply
Old Oct 20, 2006 | 08:32 AM
  #70  
KPierson's Avatar
KPierson
Banned
iTrader: (1)
 
Joined: Feb 2004
Posts: 2,128
Likes: 0
From: Dayton, OH
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.
Reply
Old Oct 20, 2006 | 11:00 AM
  #71  
Acree's Avatar
Acree
Registered User
iTrader: (29)
 
Joined: Jun 2003
Posts: 2,342
Likes: 1
From: DFW
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
Reply
Old Oct 21, 2006 | 07:00 PM
  #72  
KPierson's Avatar
KPierson
Banned
iTrader: (1)
 
Joined: Feb 2004
Posts: 2,128
Likes: 0
From: Dayton, OH
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.
Reply
Old Oct 23, 2006 | 06:19 AM
  #73  
SpinOut123's Avatar
SpinOut123
Registered User
 
Joined: Mar 2006
Posts: 5
Likes: 0
From: So Cal
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.
Reply
Old Oct 23, 2006 | 01:56 PM
  #74  
Acree's Avatar
Acree
Registered User
iTrader: (29)
 
Joined: Jun 2003
Posts: 2,342
Likes: 1
From: DFW
Default

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

-Acree
Reply
Old Jan 19, 2007 | 12:53 PM
  #75  
bb1314's Avatar
bb1314
da Terminator!
iTrader: (62)
 
Joined: Apr 2006
Posts: 9,294
Likes: 1
From: Rockville, MD
Default

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




All times are GMT -8. The time now is 07:21 AM.