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

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

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

Post by zyssai »

mctom wrote:
Mon Mar 11, 2024 3:51 pm
If I saw anything to improve here, MOSFET drivers should be placed close to MOSFETs themselves. Longer Gate track has higher capacitance and we don't want that. We keep it short by placing driving N-FET and Gate-Source resistor close to MOSFET.
Good to know, add it to my todo list :)

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

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

Post by zyssai »

Deleted
Last edited by zyssai on Mon Apr 22, 2024 12:25 am, edited 1 time in total.
These users thanked the author zyssai for the post:
odroid (Thu Mar 21, 2024 9:45 am)

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

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

Post by zyssai »

I made new keymatrix overlay file, it is working perfectly, thanks to joerg, so I uploaded it and updated tutorial.

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

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

Post by zyssai »

I also did a guide for OS installation.
So you can set up everything from scratch.
These users thanked the author zyssai for the post:
mctom (Sat Apr 27, 2024 10:52 pm)

User avatar
mctom
Posts: 4135
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polski
ODROIDs: XU4, M1, H3+, SP3, N2L, M1S, N2
Location: Gdańsk, Poland
Has thanked: 609 times
Been thanked: 829 times
Contact:

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

Post by mctom »

I'm glad you are fully protected against legal action and disclaimed any responsibility for cat attacks :lol:
Punk ain't no religious cult, punk means thinking for yourself!
OpenUPS
PiStackMon

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

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

Post by zyssai »

mctom wrote:
Sat Apr 27, 2024 10:56 pm
I'm glad you are fully protected against legal action and disclaimed any responsibility for cat attacks :lol:
We never know, I prefer to prevent it :D

I must tell you Marktext is a must have, thanks to let me know this!

User avatar
codewalker
Posts: 2246
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 85 times
Been thanked: 232 times
Contact:

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

Post by codewalker »

Hi zyssai.
You can control a new display backlight by doing the following:

Code: Select all

$ adb shell
odroidn2:/ # vi /odm/env.ini 
overlays="i2c0 i2c1 spi0 uart0 pwm_cd pwm_ef pwm_backlight"
https://wiki.odroid.com/accessory/displ ... _odroid-n2

https://wiki.odroid.com/odroid-n2/hardw ... connectors

Image
Image
Last edited by codewalker on Tue Apr 30, 2024 5:03 pm, edited 1 time in total.
These users thanked the author codewalker for the post:
zyssai (Tue Apr 30, 2024 5:02 pm)

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

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

Post by zyssai »

Hi!

Thanks!
I see there is a switch to set external PWM, that's a great news :)
Last edited by zyssai on Sat May 04, 2024 4:38 pm, edited 1 time in total.

User avatar
joerg
Posts: 2085
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 214 times
Been thanked: 482 times
Contact:

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

Post by joerg »

@codewalker: And what display is ODROID-VU1?????

User avatar
mad_ady
Posts: 12034
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, M1S
Location: Bucharest, Romania
Has thanked: 663 times
Been thanked: 1298 times
Contact:

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

Post by mad_ady »

I'd say it's a VU10, instead... :D

User avatar
joerg
Posts: 2085
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 214 times
Been thanked: 482 times
Contact:

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

Post by joerg »

Anybody offers more than 10? :D

User avatar
odroid
Site Admin
Posts: 42480
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 3708 times
Been thanked: 2079 times
Contact:

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

Post by odroid »

It seems to be 12.3. ;)
These users thanked the author odroid for the post:
joerg (Sat May 04, 2024 2:57 pm)

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

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

Post by zyssai »

codewalker wrote:
Tue Apr 30, 2024 4:53 pm
Hi zyssai.
You can control a new display backlight by doing the following:

Code: Select all

$ adb shell
odroidn2:/ # vi /odm/env.ini 
overlays="i2c0 i2c1 spi0 uart0 pwm_cd pwm_ef pwm_backlight"
Hi!

I tried, it works!
But I only found a pwm signal at pin 12 of N2. Is this a normal behavior?

User avatar
odroid
Site Admin
Posts: 42480
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 3708 times
Been thanked: 2079 times
Contact:

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

Post by odroid »

Can you clarify the issue?
Does it mean that the LCD backlight control connected to PMW_C (Pin#33) works okay and PWM_E (Pin#12) also works okay, but PWM_D (Pin#32) and PWM_F (Pin#15) do not work?

Image

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

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

Post by zyssai »

I think I need to double check, but either pwm_cd pwm_backlight or pwm_ef pwm_backlight do not work, I have nothing at pin 33 like @codewalker suggested, no signal with oscilloscope, but I have found it at pin 12.
I have no other overlays.

User avatar
odroid
Site Admin
Posts: 42480
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 3708 times
Been thanked: 2079 times
Contact:

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

Post by odroid »

We've checked with an oscilloscope and we confirmed only PWM_C Pin 33 shows 1Khz PWM output.
Other PWM_D, PWM_E and PWM_F pins don't show any wave form.

BTW, did you set the slide-switch position to "External PWM" as codewalker's picture?

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

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

Post by zyssai »

odroid wrote:
Mon May 13, 2024 3:52 pm
BTW, did you set the slide-switch position to "External PWM" as codewalker's picture?
Absolutely, it works, but I need to take PWM from pin 12. Very strange, I will retry soon with LOS20 from scratch.

User avatar
odroid
Site Admin
Posts: 42480
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 3708 times
Been thanked: 2079 times
Contact:

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

Post by odroid »

We've used only our official images. I think LOS might have a different DTBO behaviors.
These users thanked the author odroid for the post:
zyssai (Mon May 13, 2024 5:23 pm)

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

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

Post by zyssai »

odroid wrote:
Mon May 13, 2024 4:25 pm
We've used only our official images. I think LOS might have a different DTBO behaviors.
BTW, does HK plan to make a more updated version of official android as Pie is a bit outdated especially with Play Store apps?

User avatar
odroid
Site Admin
Posts: 42480
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 3708 times
Been thanked: 2079 times
Contact:

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

Post by odroid »

We don't have any firm plan.
We forwarded some driver/DT patches related to the 12inch backlight to Voodik.
I hope he will merge the patches and release a update package soon.

BTW, could you adjust the backlight brightness with Pin #12 PWM_E on the LOS20 settings menu?
These users thanked the author odroid for the post:
zyssai (Thu May 16, 2024 7:36 pm)

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

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

Post by zyssai »

Yes absolutely, android slider is working so this is not a real problem.

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 1 guest