GPIO'4'Cars, the way to drive your car with N2!

Post Reply
User avatar
zyssai
Posts: 863
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 413 times
Been thanked: 167 times
Contact:

Re: GPIO'4'Cars

Post by zyssai »

This website is wonderful, I didn't know it. The fact to see which way the current takes, I will try to play with it. Perfect, thanks :)

I will take a look tomorrow with a relay, and see if it works.

User avatar
mad_ady
Posts: 11581
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, N2L, H2, H3+, Go, Go Advance, M1
Location: Bucharest, Romania
Has thanked: 649 times
Been thanked: 1151 times
Contact:

Re: GPIO'4'Cars

Post by mad_ady »

I remember falstad.com since ~20 years ago, when the simulations were java applets!
These users thanked the author mad_ady for the post:
zyssai (Tue Apr 04, 2023 2:57 am)

User avatar
zyssai
Posts: 863
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 413 times
Been thanked: 167 times
Contact:

Re: GPIO'4'Cars

Post by zyssai »

mad_ady wrote:
Tue Apr 04, 2023 2:38 am
I remember falstad.com since ~20 years ago, when the simulations were java applets!
I've just seen how full it is with math and physics simulators. A little old school but that's the best :D

User avatar
mctom
Posts: 3236
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: OGA, XU4, M1, H3+, SP3, Vu8M, N2L
Location: Gdansk, Poland
Has thanked: 436 times
Been thanked: 590 times
Contact:

Re: GPIO'4'Cars

Post by mctom »

I was really angry making that simulation, that interface for adding components is awful. :D
I prefer SPICE simulators, but those are much harder to use, and harder to share.

One thing you should try is to simulate what would happen if you placed a relay on this output, and why it wouldn't work. Relay coil has some 100 Ohms...

The output voltage is 118 mV. Not quite enough :roll:

EDIT: My girlfriend said yesterday she'd like to finally try all that Arduino stuff.
I told her an inspiring story of our French friend who developed an actual product with a little community help.
If you say this is an intuitive and easy to understand representation, I'll use this tool to teach her about amps and volts..
Attachments
2023-04-03-200315_781x656_scrot.png
2023-04-03-200315_781x656_scrot.png (25.96 KiB) Viewed 1749 times
Punk ain't no religious cult, punk means thinking for yourself!
OpenUPS
PiStackMon

User avatar
zyssai
Posts: 863
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 413 times
Been thanked: 167 times
Contact:

Re: GPIO'4'Cars

Post by zyssai »

This website is old you're right but it does the job :)

I will delay test of relay but will try to add it to your simulation soon.
Happy to know there's some french guys helping with an anecdote :D :D

User avatar
zyssai
Posts: 863
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 413 times
Been thanked: 167 times
Contact:

Re: GPIO'4'Cars

Post by zyssai »

So here it is :D
Look at how nicely the widget is, as it is changing regarding the state of the output :P



I replaced R2 with the same relay as the one used to power N2 with the ATtiny85, it is the exact same schematic.
For the test purpose I just wired a led to N2 1.8v directly to the relay.

I just consider to let user choice to use 12v or some sort of open/close contact.
These users thanked the author zyssai for the post:
mctom (Mon Apr 17, 2023 12:39 am)

User avatar
mctom
Posts: 3236
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: OGA, XU4, M1, H3+, SP3, Vu8M, N2L
Location: Gdansk, Poland
Has thanked: 436 times
Been thanked: 590 times
Contact:

Re: GPIO'4'Cars

Post by mctom »

You can add relay permanently, and provide all three relay contacts, so the user can make anything they want with it.

OR, to save cost and board space and mass, you can make a high side transistor switch instead of a relay. :)
Related picture below. You'll need a P-type MOSFET for this. Which one? This depends mostly on maximum current you wish to provide with this output.

Don't ever believe the MOSFET current rating in amps. What you want is Ron (On-state resistance) to be low enough so your mosfet doesn't get hot when conducting.
Assuming 100mW maximum loss, and 2A output current, Ron would be..

P = I * I * R
2A * 2A * R < 0.1W
R < 0.1 / 4
R < 0.025, or more commonly 25mOhm.

T1 may be 2N7000 that you are already using.
R1 = 10k will be fine. :)
Attachments
8PxZ6.png
8PxZ6.png (12.85 KiB) Viewed 1666 times
Punk ain't no religious cult, punk means thinking for yourself!
OpenUPS
PiStackMon

User avatar
zyssai
Posts: 863
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 413 times
Been thanked: 167 times
Contact:

Re: GPIO'4'Cars

Post by zyssai »

Good advices as always :D

It's sure relay takes place. The supported current of this smd model is 2A for 12V.
I will study MOSFET solution as soon as I have time to :P

User avatar
zyssai
Posts: 863
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 413 times
Been thanked: 167 times
Contact:

Re: GPIO'4'Cars, the way to drive your car with N2!

Post by zyssai »

I will release, I think before end of May, latest LOS20 from @voodik, including all the necessary changes to make GPIO'4'Cars board working directly out of the box.

User avatar
zyssai
Posts: 863
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 413 times
Been thanked: 167 times
Contact:

Re: GPIO'4'Cars, the way to drive your car with N2!

Post by zyssai »

I am actually redesigning an alternative version of the board, for the possibility to attach the N2 and the GPIO'4'Cars board, directly on the back of VU7C screen.
Second reason to this redesign is to remove BT module, because unfortunately I don't find it perfect for every day usage.

As you can see, it will fit like this:

Image

This seems huge, but thickness including VU7C and N2 is around 58mm.
I will design a 3D printed support to fix them together.

Image
These users thanked the author zyssai for the post (total 2):
mctom (Sun May 21, 2023 1:21 am) • odroid (Mon May 22, 2023 10:46 am)

User avatar
zyssai
Posts: 863
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 413 times
Been thanked: 167 times
Contact:

Re: GPIO'4'Cars, the way to drive your car with N2!

Post by zyssai »

Today I am updating one of the first friend's car where I installed an Odroid.
There was no GPIO'4'Cars board in this one, the wiring was only made with this hand-made box containing some relays:

Image

Notice my Hyundai Tucson with dead gear box synchos. Only 5 years and 130000km.
Image

I have received last revision of the GPIO'4'Cars board, will try to solder components and test it this week ;)
These users thanked the author zyssai for the post:
mctom (Sat Jun 17, 2023 6:48 pm)

User avatar
mctom
Posts: 3236
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: OGA, XU4, M1, H3+, SP3, Vu8M, N2L
Location: Gdansk, Poland
Has thanked: 436 times
Been thanked: 590 times
Contact:

Re: GPIO'4'Cars, the way to drive your car with N2!

Post by mctom »

Maybe a dumb question, but is your project open source? I can't find it on github ;)

And sorry about your prematurely broken gearbox. That's a shame new cars are not worth their price.
Punk ain't no religious cult, punk means thinking for yourself!
OpenUPS
PiStackMon

User avatar
zyssai
Posts: 863
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 413 times
Been thanked: 167 times
Contact:

Re: GPIO'4'Cars, the way to drive your car with N2!

Post by zyssai »

For sure, here it is, but I have not updated it since some weeks. I have tons of work and it's hard to prioritize them.

My Laguna have 320000km and gears are working like a charm. Impressive.

User avatar
mctom
Posts: 3236
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: OGA, XU4, M1, H3+, SP3, Vu8M, N2L
Location: Gdansk, Poland
Has thanked: 436 times
Been thanked: 590 times
Contact:

Re: GPIO'4'Cars, the way to drive your car with N2!

Post by mctom »

Would be nice to link this repository, update it and export PDF schematics for those who don't use the same software. I would be interested in following your changes. If you have a TODO list, it could be included. :)
I'm watching this repo already, but it's so outdated I forgot about it...

My starlet has done 340k km or so, I bought it 6 years ago with 270k if I remember correctly. I paid €500 for it, because it's slow, small and ugly, and survived a few accidents.
I save €90 for repairs every month, I have amassed €1500 this way. It just won't break down. ;)
There's no way I'm ever going to spend €40k on a new car, especially seeing how they fail after 5 years these days..
Punk ain't no religious cult, punk means thinking for yourself!
OpenUPS
PiStackMon

User avatar
zyssai
Posts: 863
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 413 times
Been thanked: 167 times
Contact:

Re: GPIO'4'Cars, the way to drive your car with N2!

Post by zyssai »

You are right with cars. We bought the new Tucson around 35000€ (approx 35000$) and always mechanical problems.

I found this Laguna 3 for only 1900€ in replacement of my old Laguna 2. A good opportunity as it is full options and powerful.

Please let me know if you want me to send you one board. Greetings are only for you with this project.

Did you check the tutorial post?

Not all is noticed but there is most of needed.

User avatar
mctom
Posts: 3236
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: OGA, XU4, M1, H3+, SP3, Vu8M, N2L
Location: Gdansk, Poland
Has thanked: 436 times
Been thanked: 590 times
Contact:

Re: GPIO'4'Cars, the way to drive your car with N2!

Post by mctom »

Thanks @zyssai but I use my car so rarely these days I don't think I need Android in it. :)
I walk to work since I started it last February. I use my car every 2-3 weeks to visit my grandpa and nothing else :roll:
Punk ain't no religious cult, punk means thinking for yourself!
OpenUPS
PiStackMon

User avatar
zyssai
Posts: 863
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 413 times
Been thanked: 167 times
Contact:

Re: GPIO'4'Cars, the way to drive your car with N2!

Post by zyssai »

Yes you already told me this a few months ago :)
But perhaps you could change your mind :lol:
mctom wrote:
Sat Jun 17, 2023 9:18 pm
I would be interested in following your changes
Can I help you with something?

User avatar
mctom
Posts: 3236
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: OGA, XU4, M1, H3+, SP3, Vu8M, N2L
Location: Gdansk, Poland
Has thanked: 436 times
Been thanked: 590 times
Contact:

Re: GPIO'4'Cars, the way to drive your car with N2!

Post by mctom »

My car is lucky I upgraded cassette player to a CD player :D

It would be helpful if you uploaded schematics in PDF on github, at least next time you need help debugging a new problem.
Fingers crossed, this should never happen again. :)
But keeping files up to date on github will also save you from losing your project if HDD fails. :)
These users thanked the author mctom for the post:
zyssai (Sun Jun 18, 2023 5:18 pm)
Punk ain't no religious cult, punk means thinking for yourself!
OpenUPS
PiStackMon

User avatar
zyssai
Posts: 863
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 413 times
Been thanked: 167 times
Contact:

Re: GPIO'4'Cars, the way to drive your car with N2!

Post by zyssai »

Last revision (1.4) is working perfectly as you can see here.
Will make a video soon to demonstrate input and output capabilities.

Image
Image
These users thanked the author zyssai for the post:
odroid (Mon Jul 17, 2023 11:02 am)

User avatar
zyssai
Posts: 863
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 413 times
Been thanked: 167 times
Contact:

Re: GPIO'4'Cars, the way to drive your car with N2!

Post by zyssai »

Since I have modified GPIO'4'Cars board to fit directly beside VU7C screen, I printed a 3D frame to assemble the whole.
Not found enough time to demonstrate input/output control but will do it soon ;)

These users thanked the author zyssai for the post:
odroid (Thu Sep 07, 2023 9:34 am)

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 1 guest