Need a little help with my climate control project! *noob*

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
bunny-rabbit
Posts: 42
Joined: Fri Jan 18, 2008 10:39 am
Location: Emmen/ Netherlands

Need a little help with my climate control project! *noob*

Post by bunny-rabbit » Fri May 29, 2009 10:11 pm

Hello i`m working on automatic climate control for my car.

I`m using 2 boards with a 18F452.

The main task of board 1 wil be:

Control a GLCD 320x240 with Touch screen.
- 2x pwm
- DS18B20-par for external temp.
- 4 outputs..
- 2 inputs.

board 2:
- 4 servo`s
- 2 PWM
- 10 outputs
- 6 inputs
- 5x DS18S20

For communication between the pics i wanted to use the hardware uart of the 452`s.

Now the question is what is the best approach to complete this?
Is Usart the best option or is there a better way?


the following needs to be transmitted:

- Fan speed 0% > 100% or Auto Pic1 > pic2
- Servo Flaps position pic1 > pic2
- Desired cabin temp Pic1 > pic2 (pic2 will then deal with getting to that temp.)
- outside temp. Pic1 > pic2
- On request the readings from the DS18S20`s Pic2 > pic1
- Ac on / off / auto Pic1 > pic2
- Recirculate
- Rear defogger
- dome light 0% 100% Pic1 > pic2
- 4 door contact inputs pic2 > pic1

Anyone a idea?

Ooh... Another question pops up..
I`m runnig @ 40mhz but i`m not happy with the speed my LCD refreshes.. Its so slow.. How can that be?


Thanx in advance!

Greetz, Gert

Roshan
Registered User
Registered User
Posts: 42
Joined: Tue Mar 03, 2009 3:08 pm
Location: India

Post by Roshan » Sun May 31, 2009 10:15 am

if you are only sending data one board to another board (not receiving) then you can use spi or usart.

If both boards are using tx & rx then you can use usart but what is the distance between both boards ?

Regards
ROSHAN

bunny-rabbit
Posts: 42
Joined: Fri Jan 18, 2008 10:39 am
Location: Emmen/ Netherlands

Post by bunny-rabbit » Sun May 31, 2009 11:02 am

Hello Roshan!

I need both RX and TX so using Usart is best.

The distance between the 2 boards wil be no more than 1 metre..

Roshan
Registered User
Registered User
Posts: 42
Joined: Tue Mar 03, 2009 3:08 pm
Location: India

Post by Roshan » Tue Jun 02, 2009 6:56 am

Then usart is best option.

you can run pic micro on 1,15,200 baud to get fast data comunication.

Regards
ROSHAN

Post Reply