Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Hardware Development


Reply
 
Share Thread Tools Display Modes
Old 01-28-2005, 07:46 PM   #16
Constant Bitrate
 
cbergeron's Avatar
 
Join Date: Apr 2004
Posts: 176
cbergeron is on a distinguished road
Do you guys already have code started for the 18f ? If not, I might be able to help.

From what I've read, the underlying bus is i2c correct?

Kind regards,
CB
__________________
DashPC - The Linux Car (since 1999).

Dash LCD, Via Epia, GPS, XM, OBDII, DSSC Shutdown Controller.

As seen in the book Geek My Ride
cbergeron is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 01-28-2005, 07:47 PM   #17
Raw Wave
 
rando's Avatar
 
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
rando is on a distinguished road
Quote: Originally Posted by cbergeron
Do you guys already have code started for the 18f ? If not, I might be able to help.

From what I've read, the underlying bus is i2c correct?

Kind regards,
CB

PM Sent (again).
__________________
2004 4runner
rando is offline   Reply With Quote
Old 01-28-2005, 07:53 PM   #18
Variable Bitrate
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 284
Dexter is on a distinguished road
I am not really familiar with the 18 family of chips, but what prevents you from using something like a 16F876. It has built in UART also, slap a max232 on it and its uber easy to get serial going. cant you use one of those FTDI rs232 to usb chips for usb? i also got I2C code working on the same chip, via the UART, IIRC (its been awhile...)

Edit: oh yeah, i have an extra 18F chip, i think. I got it in a pack of samples, but im pretty sure my programmer cannot do 18F chips. Let me know if one of you guys want it.
Dexter is offline   Reply With Quote
Old 01-28-2005, 08:59 PM   #19
Raw Wave
 
Join Date: May 2003
Posts: 1,736
Chris31 will become famous soon enough
Use the I2C-RS232 code example from here.

http://www.emicros.com/pic1.htm

From the RS232 use the code to convert it to USB as found on the microchip 18F/16F series USB PIC app notes. With code alteration to suit the targeted MCU of course.

The PIC will then appear as an emulated comport via USB. or just write a straight I2C-USB code. All best done in assembly, C or BASIC are ghey in PIC

Go for the 16F because they are much cheaper.

Edit 16C I meant

Last edited by Chris31; 01-29-2005 at 09:11 AM.
Chris31 is offline   Reply With Quote
Old 01-28-2005, 09:14 PM   #20
Raw Wave
 
Join Date: May 2003
Posts: 1,736
Chris31 will become famous soon enough
I simply cant see the point in having a serial support when the USB is already there. Unless the cost of MAX232, 5 caps, 1 DB9 connector and space needed for those components are considered ok. Which I dont think so.

Just slap in a 16C745 USB PIC and a software emulating the I2C on 2 of the pins. A much much cheaper solution.


Here

1 x PIC 16C745
1 x XTAL
3 x capacitor
2 x resistor
1 x USB port
Chris31 is offline   Reply With Quote
Old 01-28-2005, 09:38 PM   #21
Variable Bitrate
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 284
Dexter is on a distinguished road
yea bit bang the I2C
Dexter is offline   Reply With Quote
Old 01-29-2005, 01:07 AM   #22
Raw Wave
 
rando's Avatar
 
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
rando is on a distinguished road
Quote: Originally Posted by Chris31
Go for the 16F because they are much cheaper.

True but there aren't any 16F parts with USB hardware, only OTP. So we could have saved a few bucks on a cheaper 16F but then add it right back for the FTDI and supporting chips, larger layout, etc. The 18F looked to be a cleaner and ultimately cheaper solution. It's a fairly powerful beast and since it's flashable, it leaves open the possibilitiy of extending the radio to possibly do other things of interest to the community (relay control, temperature sensing, dead reckoning, ...).
__________________
2004 4runner
rando is offline   Reply With Quote
Old 01-29-2005, 01:09 AM   #23
Raw Wave
 
rando's Avatar
 
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
rando is on a distinguished road
Quote: Originally Posted by Dexter
yea bit bang the I2C

Right, and if you're going to bit bang, you might as well just ditch the PIC all together. You can bit bang directly from the PC serial (+ level converter) or parallel port.
__________________
2004 4runner
rando is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 01-29-2005, 04:56 AM   #24
Variable Bitrate
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 284
Dexter is on a distinguished road
Sorry
Gotcha now. I thought the cost of the 18 family was really high compared to a 16 and some extra components but i havent really checked it out lately. sorry again. If you want my 18 chip you can have it, i have no use for it.
Dexter is offline   Reply With Quote
Old 01-29-2005, 12:42 PM   #25
Raw Wave
 
rando's Avatar
 
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
rando is on a distinguished road
Quote: Originally Posted by Dexter
Sorry
Gotcha now. I thought the cost of the 18 family was really high compared to a 16 and some extra components but i havent really checked it out lately. sorry again. If you want my 18 chip you can have it, i have no use for it.

The 18F2455 is listed at ~$9/ea at Digikey for single unit quantities but drops to $5/ea for purchsees of 25. That's why we're thinking about doing kits to keep the cost down.
__________________
2004 4runner
rando is offline   Reply With Quote
Old 01-29-2005, 12:48 PM   #26
Raw Wave
 
rando's Avatar
 
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
rando is on a distinguished road
Quote: Originally Posted by Dexter
Sorry
Gotcha now. I thought the cost of the 18 family was really high compared to a 16 and some extra components but i havent really checked it out lately. sorry again. If you want my 18 chip you can have it, i have no use for it.

No apologies needed ... we're open to discussing ideas.

The 18F2455 is listed at ~$9/ea at Digikey for single unit quantities but drop quickly to $5/ea for purchsees of 25. That's why we're thinking about doing kits to keep the cost down.

Hold on to the 18F. You might be able to use it to assemble one of these boards.
__________________
2004 4runner
rando is offline   Reply With Quote
Old 01-29-2005, 06:05 PM   #27
Low Bitrate
 
Join Date: Aug 2004
Posts: 98
racemier is on a distinguished road
Update

Hi,

I'm back from a week of snowboarding and ready to kick ... again.

First of all some info about the features of the prototype:

AM/FM car tuner module
RDS/RBDS
USB controlled
Serial output (without MAX232), example for use with small LCD with RDS info
I²C output, to connect other I²C devices and control them through USB.
Phone input (with activation input to switch the sound processor)
AUX input
4 channel output (LF-RF, LR-RR)
Antenna/amplifier output

The unit uses a car tuner module, RDS-and sound processor. All this is controlled by I²C and through the PIC by USB.

I had some trouble with the prototype PCB (holes with incorrect size etc) so I adapted the PCB layout and decided to have 2 prototype PCB's made by a company nearby (had no time myself due to holiday). They're ready on friday (02/04) and will be assembled in the weekend. When they are working one will be send over to Seth for lab testing and one I keep here for testing.
If they fulfill the expectations I will most probably convert the layout to one with normal components for those who are not that big of a fan of SMT soldering (it's quite fun if I say it myself ).

Rogier
__________________
Professionals built the Titanic, an amateur built the Ark.
racemier is offline   Reply With Quote
Old 01-30-2005, 03:00 PM   #28
FLAC
 
jbors's Avatar
 
Join Date: Nov 2003
Posts: 947
jbors is on a distinguished road
Just wanted to have some comments on design but cannot read schematics due to the small size of it. Also interesting in something similar( but simpler ) with fully digital sound.
__________________
Car pc integration with ease
Car mediacenter
jbors is offline   Reply With Quote
Old 01-30-2005, 03:43 PM   #29
Zac
Constant Bitrate
 
Join Date: Feb 2004
Location: VA
Posts: 192
Zac is on a distinguished road
How would it be simpler with digital in? There's quite a bit more coding to get digital in.
Zac is offline   Reply With Quote
Old 01-30-2005, 04:05 PM   #30
Raw Wave
 
rando's Avatar
 
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
rando is on a distinguished road
@jbors: See the FAQ. Digital audio is within reach of the current solution -- You'd have to roll your own firmware to do the A/D sampling using either the on board converters on the 18F or with extra hardware. So too your firmware and OS USB drivers will need to deal with the audio stream.
__________________
2004 4runner
rando is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CarPC Remote control of FM Radio / Amplifier within Blaupunkt HU ProCos General Hardware Discussion 7 06-16-2006 04:27 AM
1/2 din AM/FM radio ???? spectrrr General Hardware Discussion 10 10-08-2005 08:45 AM
HU Quality AM/FM RDS/RBDS Radio with Features Seth Hardware Development 428 01-20-2005 10:59 AM
Custom AM/FM radio display? ShinkunoNamida General Hardware Discussion 24 02-25-2003 08:28 PM
AM/FM radio ShinkunoNamida General Hardware Discussion 14 05-15-2002 09:40 PM



All times are GMT -5. The time now is 02:07 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics