User avatar
garygid
Gold Member
Posts: 12469
Joined: Wed Apr 21, 2010 8:10 am
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Location: Laguna Hills, Orange Co, CA

Re: The CANary project

Fri Feb 15, 2013 10:59 am

Are you using two of the TFT PROTO Boards inside the case,
as you show being used in the breadboard, or will you be using
just two of the displays?

For scale, the display is about 2.8 inch diagonal, I believe.

I will enjoy following your project, and making one of myself.

I have most of the hardware, I suspect, except for the Displays.
Should I order those now, or wait until the circuit board
is tested?

I am anxious to see close-up pictures of the enclosure, both
before and after your touch-up work.

Splendid Work!!!
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

User avatar
garygid
Gold Member
Posts: 12469
Joined: Wed Apr 21, 2010 8:10 am
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Location: Laguna Hills, Orange Co, CA

Re: The CANary project

Sun Feb 17, 2013 10:46 pm

I ordered the displays.

Perhaps you can send me the "v1" schematic
and board layout to look over?

It will be great to see how it looks (and fits)
in your custom enclosure.
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

User avatar
TickTock
Posts: 1701
Joined: Sat Jun 04, 2011 10:30 pm
Delivery Date: 31 May 2011
Leaf Number: 3626
Location: Queen Creek, Arizona
Contact: Website

Re: The CANary project

Mon Feb 18, 2013 5:34 am

garygid wrote:I ordered the displays.

Perhaps you can send me the "v1" schematic
and board layout to look over?

It will be great to see how it looks (and fits)
in your custom enclosure.
Here's a screenshot of the schematic. UPS says the enclosure is scheduled for delivery today - crossing my fingers... I am half expecting to find I got the units screwed up and it is 7cmX3cm instead of 7"x3" :-)
You do not have the required permissions to view the files attached to this post.

User avatar
garygid
Gold Member
Posts: 12469
Joined: Wed Apr 21, 2010 8:10 am
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Location: Laguna Hills, Orange Co, CA

Re: The CANary project

Mon Feb 18, 2013 10:40 am

How do the two displays, and their touch screens get connected?

I see the OBD cable connection, two CAN interface chips,
a USB port, measurement of the 12v, and some power supply stuff.

Good luck on the enclosure. :D
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

User avatar
garygid
Gold Member
Posts: 12469
Joined: Wed Apr 21, 2010 8:10 am
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Location: Laguna Hills, Orange Co, CA

Re: The CANary project

Mon Feb 18, 2013 11:13 am

Does the RS (pin 8) of the CAN chip default to a firm pull-up state?
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

User avatar
TickTock
Posts: 1701
Joined: Sat Jun 04, 2011 10:30 pm
Delivery Date: 31 May 2011
Leaf Number: 3626
Location: Queen Creek, Arizona
Contact: Website

Re: The CANary project

Mon Feb 18, 2013 1:29 pm

garygid wrote:Does the RS (pin 8) of the CAN chip default to a firm pull-up state?
I do pull the outputs up in the code to prevent transmit, but you can just float the rs pins by pulling the jumpers. The rs pin is in series with the vp 230 can bus driver so if you don't provide a path to ground it can't accidentally transmit.

User avatar
TickTock
Posts: 1701
Joined: Sat Jun 04, 2011 10:30 pm
Delivery Date: 31 May 2011
Leaf Number: 3626
Location: Queen Creek, Arizona
Contact: Website

Re: The CANary project

Mon Feb 18, 2013 2:16 pm

garygid wrote:How do the two displays, and their touch screens get connected?

I see the OBD cable connection, two CAN interface chips,
a USB port, measurement of the 12v, and some power supply stuff.

Good luck on the enclosure. :D
Both displays are on one SPI interface. Each gets its own CS pin. I put the LED driver (2n2222 NPN at the top) on a pwm output so I can control the brightness. Am hoping to find a message on the canbus indicating the condition of the cars light sensor so I can dim the display whenever the LEAFs built-in instrumentation is dimmed. Worse case, I can add a cadmium sulphide cell to one of the spare analog inputs,

For the touch screen, I connect the X&Y in series (X- on the left to X+ on the right and similarly Y- on the left to Y+ on the right). Then I just connect the remaining connections (left_X+,left_y+,right_X-,right_Y-) to four of the analog inputs (16,17,19,20). Drive X+ to 1 and X- to 0 and read Y, then dirve Y+ to 1 and Y- to 0 and read X. Ends up decoding the two screens to two of four quadrants but it easy arithmetic to convert to more meaningful X&Y coordinates. There is a calibration routine you need to go through at least once to get good accuracy. Was kindof noisy so I had to filter a bit. I also added interrupt support so the routine is only called when you actually touch the screen (no wasted power or CPU time). Right now all it does is bring up a screen configuration overlay to let you select which display you want on each screen.
You do not have the required permissions to view the files attached to this post.

User avatar
TickTock
Posts: 1701
Joined: Sat Jun 04, 2011 10:30 pm
Delivery Date: 31 May 2011
Leaf Number: 3626
Location: Queen Creek, Arizona
Contact: Website

Re: The CANary project

Mon Feb 18, 2013 6:43 pm

Enclosure came in today. Finish is rough but otherwise exactly like I designed it. Here are a few pics showing the "pre-finishing." Looks like it will clean up nicely - despite the rough outer surface it is smooth durable plastic underneath.
You do not have the required permissions to view the files attached to this post.

User avatar
TickTock
Posts: 1701
Joined: Sat Jun 04, 2011 10:30 pm
Delivery Date: 31 May 2011
Leaf Number: 3626
Location: Queen Creek, Arizona
Contact: Website

Re: The CANary project

Mon Feb 18, 2013 6:45 pm

pics continued.
You do not have the required permissions to view the files attached to this post.

User avatar
TonyWilliams
Posts: 10091
Joined: Sat Feb 19, 2011 1:48 am
Location: San Diego
Contact: Website

Re: The CANary project

Mon Feb 18, 2013 6:46 pm

Pretty exciting!

Return to “LEAF CANBus”