Need Help w/ School Project....

Thread Starter

uuuu2c

Joined Sep 21, 2006
5
Hi.....

I'm new to this board and relatively new to electronics and programming. I decided to take a year long project oriented course and had this project dropped on my lap. (I have basic knowledge of electronics and C programming.....hopefully it'll help.)

I have to basically take 4 inputs (square waves) of various frequencies and display a coinciding "meter"-like representation on a 7" TFT dispaly. I am assuming that I will require microcontrollers since this project is to be self-contained. The only thing that I can have is a +12V powersupply. Our instructor compared our project to a dashboard of a car where the speedometer and tachometer would use similar inputs and display on the guages. If I am able to finish this quickly, I am to add any customization as I require.

ANY help would be extremely appreciated as I have tried to do some research online and have come up with a blank......

Thank you in advance....
 

beenthere

Joined Apr 20, 2004
15,819
Hi,

Not enough to go on. How are the data to be displayed? Simulated dial gauges? What are the significant variables in the four pulse trains? Have you made the selection of hardware for the project? Have you any ideas about hoe to take in the pulse trains and deal with the variability?
 

Thread Starter

uuuu2c

Joined Sep 21, 2006
5
Well, that's the problem. Since this is a project that is supposed to take the entire year, we are supposed to do the investigations ourselves and plan out the project ourselves.

The gauges on a car was just used as an example. We are actually responsible for coming up with any generated frequencies that we wanted. After doing some research, I came across the following:

Square wave
0 - 5V
~4000 Hz/1mph

As well, I was thinking of using the following other wave generators.

Temperature (not sure of which sensor yet)
Logic (on/off)
Sinusoidal wave

Since I can generate the wave any way that I want, however with appropriate sensors, it ultimately does not matter what types of waves and where it comes from.

As for the displaying, I was thinking of using C. However, I am not sure how I would implement a TFT screen to show images using C.

I guess that I am quite lost still since I have so little background in each of the components that I must deal with. I will read over suggestions and also post updates of what I come across. PLEASE.....any help is extremely appreciated.
 

beenthere

Joined Apr 20, 2004
15,819
Hi,

A couple of observations: 4000 Hz/mph is a bit over the top. You only need a frequency that will allow you to make the measurement with what is sufficient accuracy. If .1 mph is the resoultion, then 10 Hz/mph is enough.

On/off isn't a frequency - it's just a state.

Temperature is normally measured by a change in voltage coming from a change in resistance. You could make this a frequency with a voltage-to-frequency converter, but it's lots easier to just deal with the voltage change.

What's the on/off and sine wave supposed to represent?

You use C to write the program that will take in the frequencies, do the conversion into engineering units, and ultimately drive the display. You will need a microprocessor and support ic's to do this.

You'll need to learn enough to be able to know why it's necessary or not to have different waveforms to represent your measured variables, what it will take to convert then into engineering units, and how to control a display using whatever microprocessor you are using. Gonna be a busy year.
 

beenthere

Joined Apr 20, 2004
15,819
Hi,

A couple of observations: 4000 Hz/mph is a bit over the top. You only need a frequency that will allow you to make the measurement with what is sufficient accuracy. If .1 mph is the resoultion, then 10 Hz/mph is enough.

On/off isn't a frequency - it's just a state.

Temperature is normally measured by a change in voltage coming from a change in resistance. You could make this a frequency with a voltage-to-frequency converter, but it's lots easier to just deal with the voltage change.

What's the on/off and sine wave supposed to represent?

You use C to write the program that will take in the frequencies, do the conversion into engineering units, and ultimately drive the display. You will need a microprocessor and support ic's to do this.

You'll need to learn enough to be able to know why it's necessary or not to have different waveforms to represent your measured variables, what it will take to convert then into engineering units, and how to control a display using whatever microprocessor you are using. Gonna be a busy year.
 

Thread Starter

uuuu2c

Joined Sep 21, 2006
5
Thanks for some suggestions and insight into this project.

As for the temperature, I guess that I can just leave it as a voltage.

The ON/OFF is just a logic on/off. So, when the input is ON, there will be a 5V constant signal. When the input is OFF, there will be 0V.

The sine wave would be a non-square wave but more of a A/C type of wave. Since I'm supposed to use different types of input to translate into a display representation, I thought that this would another input that I could use.

In terms of a microprocessor and support IC's, do you have any suggestions? I don't know what would be too powerful (in terms of computing power) and what wouldn't be.

Thanks again in advance.....
 

beenthere

Joined Apr 20, 2004
15,819
Hi,

I'm a little puzzled by your last post. It makes it sound as if you have been given the assignment, and then dropped into free fall.

While I might expect the instructor to direct you to figure out how to assemble the hardware and write the code, I find it har to imagine that the school would provide no resource for you to use. That is, the hardware to choose from.

In order to use a microprocessor, it is necessary to have a means of programming it. This typically costs in the hundreds of dollars for the programmer and support software. That's a lot to have to eat when it's utility to you in the future is questionable.

There are simply too many microprocessors on the market to try to suggest "the" correct choice for your project. I would expect the institution to have at leat one line of microprocessors on hand, along with the programmers for same. Otherwise, there are just too many choices to have to make.

Surely there must be a lab with the hardware you need....
 

Thread Starter

uuuu2c

Joined Sep 21, 2006
5
Thanks again for the reply.

I apologize for the obscurity. Yes, you are absolutely correct that we do have a lab where there is equipment that we could use. However, in terms of components, we have no restrictions. The only restriction is that we have a $1000 max. expense account that must be approved by our instructor.

I know that all of this sounds unorganized. I guess that's just how my head is at the moment. I have no idea where I should start and where I should go to even research what I need.

Any resources would help. It's not that I'm not willing to do the reasearch. It's just that I don't know where to even look.
 

beenthere

Joined Apr 20, 2004
15,819
Hi,

Establish some basics. What kind of interface is necessary to drive your display? How much resolution is required in your A to D converter? What signals do you want to simulate from your "car".
 

Thread Starter

uuuu2c

Joined Sep 21, 2006
5
Thanks again for the guidelines. I was busy slaving over my books for a few mid-terms. However, now I'm back on this. Since I am looking at not using many colours, and I want to obviously reduce the complexity, I am looking at using OLED type displays. I am looking at different manufacturers right now.

As for the signal simulations, I will do the tachometer/speedometer (square wave), water/oil temperature (voltage change), turn signal (on/off), and another channel that I haven't decided what to do yet.

In terms of processors, do you have any suggestions? I have been reading and most people seem to be very biased towards one or another. Do you have a personal preference and why?

Thanks again for all of your suggestions and help. It's really helping a lot.
 

xphere

Joined Sep 29, 2006
15
im new to this too, but in my research, the atmel avr solution is most cost effective. The STK500 kit that you can get from digikey.com for 80$ USD seemed to give me the most for my money. it very likely would be the only MCU related thing you would need to buy as it comes with two AVR's, the 8185 and the mega128 (the 8185 could be the wrong number, but the point being, two chips) and i do know that atmel has some docs on working with OLED's and their chips but you may want to look into that.. theres my two cents... could be worth less..
 
Top