modded Lawnchair Launcher or how I build my C4 Carputer

Post Reply
User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

modded Lawnchair Launcher or how I build my C4 Carputer

Post by joerg »

Hello odroid community, I just want to show how is looking Lawnchair Launcher with a custom menu drawer on Lineage 17.
This menu I created years ago to use with the C2 in my car. Now I have polished the favorites part and integrated it into Lawnchair.
I don't like to much app starters on the home screen, better none of them. ;)
On the home screen there are three dots in left downer corner to open the menu.
Screenshot_20200603-134318_Lawnchair.png
Screenshot_20200603-134318_Lawnchair.png (1 MiB) Viewed 3249 times
A list of all apps...
Screenshot_20200603-134216_Lawnchair.png
Screenshot_20200603-134216_Lawnchair.png (624.04 KiB) Viewed 3249 times
Favorites...
Screenshot_20200603-135623_Lawnchair.png
Screenshot_20200603-135623_Lawnchair.png (827.19 KiB) Viewed 3249 times
Adding apps to favorites...
Screenshot_20200603-140104_Lawnchair.png
Screenshot_20200603-140104_Lawnchair.png (614.77 KiB) Viewed 3249 times
BTW. I am waiting the pcb for the car interface board to finalize this project (C4 Carputer). It's as of DHL on the way...
...but I don't know if it ever will be in my hands :twisted:

Code: Select all

2020-06-02 23:34:36 Uncontrollable Clearance Delay
2020-06-02 08:16:00 Uncontrollable Clearance Delay
2020-05-31 17:42:00 Uncontrollable Clearance Delay
2020-05-31 16:02:24 Processed for clearance at LEIPZIG-DEU
2020-05-31 15:27:06 Arrived at Sort Facility LEIPZIG-DEU
2020-05-30 06:43:58 Departed Facility in HONG KONG-HKG
2020-05-30 06:23:47 Processed at HONG KONG-HKG
2020-05-29 23:23:00 Uncontrollable Clearance Delay
2020-05-29 21:43:33 Processed for clearance at LEIPZIG-DEU
2020-05-29 19:09:08 Arrived at Sort Facility LEIPZIG-DEU
2020-05-29 17:13:38 Processed at HONG KONG-HKG
2020-05-29 11:54:59 Customs status updated
2020-05-29 11:15:14 Processed at DUBAI-ARE
2020-05-29 07:27:58 Departed Facility in HONG KONG-HKG
2020-05-28 23:26:43 Clearance processing complete at HONG KONG-HKG
2020-05-28 22:11:21 Arrived at Sort Facility HONG KONG-HKG
2020-05-28 18:58:00 Customs status updated
2020-05-28 18:06:58 Departed Facility in SHENZHEN-CHN
2020-05-28 18:05:53 Processed at SHENZHEN-CHN
2020-05-28 18:04:52 Arrived at Sort Facility SHENZHEN-CHN
2020-05-28 13:05:27 Customs status updated
2020-05-28 16:50:51 Shipment picked up 
These users thanked the author joerg for the post (total 2):
rooted (Wed Jun 03, 2020 11:06 pm) • odroid (Thu Jun 04, 2020 8:51 am)

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by joerg »

Finally the pcb (10 pcs.) has arrived. :)
IMG_20200610_160300.jpg
IMG_20200610_160300.jpg (926.71 KiB) Viewed 3173 times
IMG_20200610_160204.jpg
IMG_20200610_160204.jpg (879.8 KiB) Viewed 3173 times
These users thanked the author joerg for the post:
odroid (Thu Jun 11, 2020 10:10 am)

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by joerg »

I have designed my pcb for the Toslink/spdif footprint PLT133/T10W, but I find it very difficult to get them. There are only few distributors like Digi-Key with delivery at high costs. Also they don't have the PLT133 in stock, but the nearly identical EAPLTAA6, also from Everlight.
Now I found another device that has the same footprint: Cliff OTJ-8 FCR684208T. It has some less bit rate, as datasheet 12.5Mbps (PLT133: 16Mbps). There are more distributors for the OTJ8. I bought two in Germany at Conrad.

User avatar
rooted
Posts: 8110
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 727 times
Been thanked: 270 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by rooted »

Your boards turned out really nice, I hope you got all the traces and components right so you won't need another revision :)
These users thanked the author rooted for the post:
joerg (Thu Jun 11, 2020 1:52 pm)

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by joerg »

Thank you, @rooted. I haven't tested all, but the mayor part.
Here is how it looks, not yet in the car. To assemble into the car, I need to make a housing first.
IMG_20200611_151313.jpg
IMG_20200611_151313.jpg (502.78 KiB) Viewed 3134 times
IMG_20200611_151635.jpg
IMG_20200611_151635.jpg (554.99 KiB) Viewed 3134 times
The switch is for simulating the ignition wire.
When the 12V connector is plugged in then the gpio of the ATiny that controls the power fet is for some milli seconds on and the fuse is opening due to the in rush current. This it makes two or three times and causes the ATiny to reboot. But not always. I think I will change the 3.15A super fast fuse to a slower one to avoid this. This is a minor issue, as the connection of the 12V not so often happens when it is assembled in the car.
These users thanked the author joerg for the post (total 2):
rooted (Fri Jun 12, 2020 3:46 am) • Luke.go (Fri Jun 12, 2020 9:30 am)

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by joerg »

Here I post again the shematic of the pcb.
C4 Car Interface.png
C4 Car Interface.png (89.36 KiB) Viewed 3121 times
These users thanked the author joerg for the post (total 3):
rooted (Fri Jun 12, 2020 3:46 am) • odroid (Fri Jun 12, 2020 8:40 am) • Luke.go (Fri Jun 12, 2020 9:30 am)

mad_ady
Posts: 8821
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 586 times
Been thanked: 529 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by mad_ady »

It fits nicely, great job!
These users thanked the author mad_ady for the post:
joerg (Fri Jun 12, 2020 2:05 am)

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

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by odroid »

Looks great! :D
These users thanked the author odroid for the post:
joerg (Sat Jun 13, 2020 3:59 am)

Tenaja
Posts: 67
Joined: Mon Jun 24, 2019 2:05 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 7 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by Tenaja »

Looks like a neat project
These users thanked the author Tenaja for the post:
joerg (Sat Jun 13, 2020 3:59 am)

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by joerg »

I have created another service app that regulates the pwm fan. It reads the temperatures of zone0 and zone1 and sets the duty cycle by calculation (temp - 25) * 15 * 1000. So it will be 75% at 75°C and 37.5% at 50°C. I need to polish it a little, means making this calculation be settable in prefences. I am using a refurbished 5V fan from notebook.
Screenshot_20200612-204842_Lawnchair.png
Screenshot_20200612-204842_Lawnchair.png (423.99 KiB) Viewed 3067 times
BTW, it would be great if setting pwm is possible by Android Things. But I assume it's not yet available?
These users thanked the author joerg for the post:
rooted (Sat Jun 13, 2020 4:36 am)

User avatar
rooted
Posts: 8110
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 727 times
Been thanked: 270 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by rooted »

That's awesome, you keep banging out those super useful apps that make using as a carputer so much nicer.

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by joerg »

The app for controlling the pwm fan is ready:
V1.1.1
-pwm number (0|1) can be edited in settings (Why this? Pls. read in viewtopic.php?p=312663#p312663)
TemperatureService-V1.1.1.zip
(1.54 MiB) Downloaded 4 times
V1.1.0
-New preference and function 'Low limit temperature to switch off PWM'. The hysteresis is 5°C.
-Changed default frequency to 12kHz

I made it open source :) : https://github.com/joerg65/TemperatureService
It is limited to work only on C4 and N2. On N2 I haven't tried it yet.
The settings page is written in English, German and Spanish.
The image draws the linear function as the settings are applied. To show how the duty cycle relates to the temperature.
Screenshot_20200614-204548_Temperature_Service.png
Screenshot_20200614-204548_Temperature_Service.png (35.25 KiB) Viewed 3003 times
Screenshot_20200614-204529_Temperature_Service.png
Screenshot_20200614-204529_Temperature_Service.png (29.6 KiB) Viewed 2807 times
It's designed for only landscape screen. On other screen than VU7+ it might look not so fine.
Last edited by joerg on Sun Nov 22, 2020 2:59 am, edited 3 times in total.
These users thanked the author joerg for the post (total 2):
rooted (Mon Jun 15, 2020 7:37 am) • Luke.go (Mon Jun 15, 2020 4:34 pm)

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by joerg »

The next step is to make a housing for the C4, the interface board and a fan. As I don't own a 3d printer, it will be made by handwork.
I have reserved some of the pcb, but 3 of them I can give away, unsoldered...pls. contact me by pn, if there is demand.
These users thanked the author joerg for the post (total 2):
rooted (Mon Jun 15, 2020 7:41 am) • mad_ady (Mon Jun 15, 2020 2:37 pm)

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by joerg »

Some more details for the pcb:
B.png
B.png (59.15 KiB) Viewed 2948 times
F.png
F.png (68.86 KiB) Viewed 2948 times
BOM:

Code: Select all

"Source:","C4 Car Interface.sch"
"Date:","Mo 15 Jun 2020 18:16:09 CEST"
"Tool:","Eeschema 5.1.6-c6e7f7d~86~ubuntu18.04.1"
"Component Count:","39"
"Ref","Value","Footprint"
"BT1","CR1220","user:BatteryHolder_SMTU1220-SMT"
"C1","100","Capacitor_SMD:C_1206_3216Metric_Pad1.42x1.75mm_HandSolder"
"C2","1u","Capacitor_SMD:C_1206_3216Metric_Pad1.42x1.75mm_HandSolder"
"C3","22","Capacitor_SMD:C_1206_3216Metric_Pad1.42x1.75mm_HandSolder"
"C4","22","Capacitor_SMD:C_1206_3216Metric_Pad1.42x1.75mm_HandSolder"
"D1"," 5.0SMDJ15CA","Diode_SMD:D_SMC_Handsoldering"
"D2","3V3","ZenerDiode_SMD:D_MiniMELF"
"D4","1N4148","Diode_SMD:D_MiniMELF"
"D5","BLUE","LED_SMD:LED_1206_3216Metric_Pad1.42x1.75mm_HandSolder"
"F1","3.15","Fuse:Fuse_Littelfuse_372_D8.50mm"
"J1","3p male","Connector_Phoenix_MC:PhoenixContact_MC_1,5_3-G-3.81_1x03_P3.81mm_Horizontal"
"J2","02x20","Connector_PinSocket_2.54mm:PinSocket_2x20_P2.54mm_Vertical"
"J3","01x02","Connector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_Vertical"
"J4","01x02","TerminalBlock_4Ucon:TerminalBlock_4Ucon_1x02_P3.50mm_Vertical"
"J5","02x03","Connector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_Horizontal"
"J6","2p male","Connector_Phoenix_MC:PhoenixContact_MC_1,5_2-G-3.81_1x02_P3.81mm_Horizontal"
"J7","01x07","Connector_PinSocket_2.54mm:PinSocket_1x07_P2.54mm_Vertical"
"L1","SRP1265A-470","user:L_Bourns_SRR1265_Handsolder"
"Q1","SI4447","Package_SO:SOIC-8_3.9x4.9mm_P1.27mm"
"Q2","BC847","Package_TO_SOT_SMD:SOT-23"
"Q3","FMMT618","Package_TO_SOT_SMD:SOT-23"
"R1","2k7","Resistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolder"
"R2","1k","Resistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolder"
"R3","3k3","Resistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolder"
"R4","10k","Resistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolder"
"R5","1k","Resistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolder"
"R6","2k","Resistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolder"
"R7","2k","Resistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolder"
"R8","3k3","Resistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolder"
"R9","3k3","Resistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolder"
"R10","330","Resistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolder"
"R11","100","Resistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolder"
"R12","470","Resistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolder"
"SW1","RND 210-00255","user:SW_PUSH_6mm_H8.5mm"
"U1","MCP1703A-3302","Package_TO_SOT_SMD:SOT-23"
"U2","ATtiny85-20SU","Package_SO:SOIJ-8_5.3x5.3mm_P1.27mm"
"U3","DS3231M","Package_SO:SOIC-16W_7.5x10.3mm_P1.27mm"
"U4","PLT133-T10W","user:Everlight_PLT133_T10W"
All capacitors are ceramic.
R8 and R9 are not really needed. I learned in other thread that C4 has already 1k pull up resistors.
Without yellow Led it won't work! The Led acts as a Zener Diode.
For the power supply of the C4 must be soldered a header at J3. https://wiki.odroid.com/odroid-c4/appli ... ower_input
Alternatively there is another connector J6 to connect the power, if there is no trust in the header connection. ;)
Attachments
gerber.zip
(126.35 KiB) Downloaded 15 times
These users thanked the author joerg for the post:
odroid (Tue Jun 16, 2020 8:41 am)

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by joerg »

Nearly ready with the housing. But as I said, it's hand made from soft pvc plates, that can be cut by knife and glued with a vulcanizing glue.
Then I went with my car for a first test and it worked basically everything: Spdif music listening, Gps navigating, Hilink modem Internet. The pwm fan makes noises with 1000Hz, also with 500Hz. I reduced the frequency to 100Hz, now it's less noisy.
On the picture is seen that there is a gap between the 40p header and the connector. It is meant for the air flow. I have to make and put some supports that makes the air go through the air gap to pass the cooling element.

It's not a beauty!
IMG_20200617_103454.jpg
IMG_20200617_103454.jpg (365.94 KiB) Viewed 2891 times
IMG_20200617_103821.jpg
IMG_20200617_103821.jpg (398.26 KiB) Viewed 2891 times

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

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by odroid »

It is beautiful :D
Making an air gap is a brilliant idea indeed. :o

BTW, it is worth to try 25~30Khz of PWM frequency to lower the fan motor noise probably.

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by joerg »

odroid wrote:
Thu Jun 18, 2020 8:18 am
It is beautiful :D
Making an air gap is a brilliant idea indeed. :o
Thank you for the flowers!
BTW, it is worth to try 25~30Khz of PWM frequency to lower the fan motor noise probably.
I will check this due to the maximum power dissipation of 625mW of the FMMT618.
I need to measure the current and the du/dt of the switch to have an idea of the thermal loss.

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by joerg »

Thank you @odroid, I tried different pwm frequencies. The power stage is not well designed for frequency > 20kHz. The switch off takes about 25us, the switch on 3.4us. I tried another freewheeling diode, a faster one as 1N4148, but the behavior is the same.
But I have also low noise at frequencies of 12 - 16kHz. The power loss with this kind of fan I use is about <200mW. The fan takes 250mA. The main power loss is at switch on and off. During constant switch on phase it's about 3mW and not need to be taken in account.
Because of the switch off ramp the signal is looking as triangle at higher frequencies than 20kHz.
I checked also with finger and with thermometer, no significant warming a the FMMT618.
I will stay with 12kHz. As this is a good compromise of switch characteristic and noise.
These users thanked the author joerg for the post:
odroid (Fri Jun 19, 2020 9:21 am)

mad_ady
Posts: 8821
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 586 times
Been thanked: 529 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by mad_ady »

Since it will be in a car - will noise matter?

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by joerg »

@mad_ady, yes the noise at 1kHz was ugly penetrate. And some times I am sitting in the car waiting, without motor on, than it comes to foreground.

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by joerg »

Here is the hex file for the ATtiny85 on the pcb:
TinyC4.hex.zip
(1021 Bytes) Downloaded 20 times
To flash it I use this avrdude command from Eclipse UI:
/usr/bin/avrdude -pt85 -cavrisp2 -P/dev/ttyACM0 -u -Uflash:w:TinyC4.hex:a -Ulfuse:w:0x62:m -Uhfuse:w:0xdf:m -Uefuse:w:0xff:m

A small description of the code:
* With Ignition On the ATtiny wakes up. The Output pin Enable will be switched On and the Power-FET connects power to the C4.
* The Ignition is internally rooted to Shutdown pin PB4 that is connected to GPIO 24 of C4, and there the pin should be set up as Shutdown.
* When Ignition switches to Off then C4 should initiate a shutdown and finally after delay time the 5V will be off and the ATtiny will go to sleep.
* If the Reboot button is pressed short time, the ATtiny does nothing, the button is also connected to GPIO 27 of C4 and should cause a reboot.
* Pressing the button more than 2s will cause a power cycle to the C4.
These users thanked the author joerg for the post:
odroid (Fri Jun 19, 2020 9:21 am)

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by joerg »

I have installed and running it since a couple of days. It's running fine. :)
These days we have > 30°C in Germany and today and yesterday I was at customers and in the afternoon came back to my car that was all day in full sun. Today I made a check, switched off the pwm fan and also cars' climate control, only opened the windows. The temperature of the C4 went to 65°C, some of my services running, music player and navigation app. Then I switched on the pwm fan, the temperature went down to 38 - 40°C with duty cycle of ~33%.
It shows me that it may work if people don't want to use an extra fan in a car installation. But I will stay with it! For the lifetime of an electronic system it is better when temperature is controlled, not so much deviation.
These users thanked the author joerg for the post:
odroid (Thu Jun 25, 2020 9:09 am)

mad_ady
Posts: 8821
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 586 times
Been thanked: 529 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by mad_ady »

I wonder how hot do built-in stereo/navigation system run? I doubt they have cooling fans, but they may be less powerful...

Tenaja
Posts: 67
Joined: Mon Jun 24, 2019 2:05 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 7 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by Tenaja »

Very large, exposed heat sinks.

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by joerg »

I have soldered one board and I have programmed and tested it. If someone wants it, please pm me. There are more 3 empty boards, I can solder them too.
These users thanked the author joerg for the post (total 2):
Technicavolous (Mon Jul 06, 2020 11:42 am) • rooted (Mon Jul 06, 2020 12:52 pm)

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by joerg »

I was asked to publish the source code of the Attiny85 on the board.
Here it is with a corresponding makefile:
TinyC4.zip
(7.53 KiB) Downloaded 13 times
To compile it, it need some packages to be installed on your Linux host:
Bildschirmfoto vom 2020-07-26 16-53-15.png
Bildschirmfoto vom 2020-07-26 16-53-15.png (28.6 KiB) Viewed 1700 times
A simple make will compile it:

Code: Select all

~/Development/eclipse/TinyC4 $ make

-------- begin --------
avr-gcc (GCC) 5.4.0
Copyright (C) 2015 Free Software Foundation, Inc.
Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es
gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE.


Compiling C: main.c
avr-gcc -c -mmcu=attiny85 -I. -gdwarf-2 -DF_CPU=1000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=./main.lst  -std=gnu99 -Wundef -MMD -MP -MF .dep/main.o.d main.c -o main.o 

Linking: main.elf
avr-gcc -mmcu=attiny85 -I. -gdwarf-2 -DF_CPU=1000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=main.o  -std=gnu99 -Wundef -MMD -MP -MF .dep/main.elf.d main.o --output main.elf -Wl,-Map=main.map,--cref     -lm

Creating load file for Flash: main.hex
avr-objcopy -O ihex -R .eeprom -R .fuse -R .lock main.elf main.hex

Creating load file for EEPROM: main.eep
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \
--change-section-lma .eeprom=0 --no-change-warnings -O ihex main.elf main.eep || exit 0

Creating Extended Listing: main.lss
avr-objdump -h -S -z main.elf > main.lss

Creating Symbol Table: main.sym
avr-nm -n main.elf > main.sym

Size after:
   text	   data	    bss	    dec	    hex	filename
    770	      0	     15	    785	    311	main.elf

The main.hex is the file that need to be flashed.
I use a cheap usb avr programmer for that:
IMG_20200726_170644.jpg
IMG_20200726_170644.jpg (304.94 KiB) Viewed 1700 times
The 6p cable need to be plugged with red mark to pin 1, as it can be seen.
The command to flash:

Code: Select all

avrdude -pt85 -cavrispv2 -P/dev/ttyACM0 -Uflash:w:main.hex:a -Ulfuse:w:0x62:m -Uhfuse:w:0xdf:m -Uefuse:w:0xff:m

Code: Select all

~/Development/eclipse/TinyC4 $ avrdude -pt85 -cavrispv2 -P/dev/ttyACM0 -Uflash:w:main.hex:a -Ulfuse:w:0x62:m -Uhfuse:w:0xdf:m -Uefuse:w:0xff:m
avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e930b (probably t85)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "main.hex"
avrdude: input file main.hex auto detected as Intel Hex
avrdude: writing flash (770 bytes):

Writing | ################################################## | 100% 0.21s

avrdude: 770 bytes of flash written
avrdude: verifying flash memory against main.hex:
avrdude: load data flash data from input file main.hex:
avrdude: input file main.hex auto detected as Intel Hex
avrdude: input file main.hex contains 770 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.16s

avrdude: verifying ...
avrdude: 770 bytes of flash verified
avrdude: reading input file "0x62"
avrdude: writing lfuse (1 bytes):

Writing | ################################################## | 100% 0.01s

avrdude: 1 bytes of lfuse written
avrdude: verifying lfuse memory against 0x62:
avrdude: load data lfuse data from input file 0x62:
avrdude: input file 0x62 contains 1 bytes
avrdude: reading on-chip lfuse data:

Reading | ################################################## | 100% 0.00s

avrdude: verifying ...
avrdude: 1 bytes of lfuse verified
avrdude: reading input file "0xdf"
avrdude: writing hfuse (1 bytes):

Writing | ################################################## | 100% 0.01s

avrdude: 1 bytes of hfuse written
avrdude: verifying hfuse memory against 0xdf:
avrdude: load data hfuse data from input file 0xdf:
avrdude: input file 0xdf contains 1 bytes
avrdude: reading on-chip hfuse data:

Reading | ################################################## | 100% 0.00s

avrdude: verifying ...
avrdude: 1 bytes of hfuse verified
avrdude: reading input file "0xff"
avrdude: writing efuse (1 bytes):

Writing | ################################################## | 100% 0.01s

avrdude: 1 bytes of efuse written
avrdude: verifying efuse memory against 0xff:
avrdude: load data efuse data from input file 0xff:
avrdude: input file 0xff contains 1 bytes
avrdude: reading on-chip efuse data:

Reading | ################################################## | 100% 0.00s

avrdude: verifying ...
avrdude: 1 bytes of efuse verified

avrdude: safemode: Fuses OK (E:FF, H:DF, L:62)

avrdude done.  Thank you.
These users thanked the author joerg for the post:
odroid (Mon Jul 27, 2020 10:35 am)

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

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by odroid »

Thank you for the detail instruction. Luckily, I have an AVR ISPv2 compatible device too. :D

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by joerg »

I soldered one board without rtc and fan components. It fits onto the N2+. :)
IMG_20200727_204241.jpg
IMG_20200727_204241.jpg (302.1 KiB) Viewed 1644 times
I left also the headers J3 and J7 away. On J7 I soldered only one pin to connect the spdif signal with a jumper wire.
These users thanked the author joerg for the post:
odroid (Tue Jul 28, 2020 9:26 am)

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: modded Lawnchair Launcher or how I build my C4 Carputer

Post by joerg »

Posted a newer version of app TemperatureService.
BTW. I still have some printed boards. Can be soldered by me.
These users thanked the author joerg for the post:
odroid (Mon Nov 23, 2020 12:11 pm)

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 1 guest