atmega32 heat sensor project - Page 1
Forum section: electronics / general

author: yalect
author_rank: Regular Contributor
timestamp: August 09, 2017, 10:24:55 pm
content: Hello,I would like to ask you that I want to make atmega32 heat sensor project with 7 segment so, I link two microcontrollers first one connected to the sennsor and second one as reciever the first send data to the second serially, if you help me to write my code in C beginning how to shift the data inside microcontroller to send it serially and how to disply it with 7 segement and I have to make the reciever input as interept or just input?Thank you

author: Mr. Scram
author_rank: Super Contributor
timestamp: August 10, 2017, 01:47:20 am
content: Quote from: yalect on August 09, 2017, 10:24:55 pmI think there are lot of Arduino projects that have been well described that at least partly do what you want to achieve. What have you found on doing this so far and what are the roadblocks you came across?

author: zeqing
author_rank: Regular Contributor
timestamp: August 10, 2017, 03:20:14 am
content: explain what you wan to do more detailed so we can help you more....basically, if you think 2 controllers need to do this simple projects, i believe you are too new for controllers and you may need to learn more how other projects did, to start your own project.

author: picandmix
author_rank: Frequent Contributor
timestamp: August 10, 2017, 08:28:42 am
content: For the heat sensor we need to know the temperature range you are measuring, eg normal room temperature or a furnace ?Your communication between two micros, by wire or wireless and what distance are you talking about, a meter or a kilometer.As said, it sounds like an easy enough project for an Arduino Uno and C++, unless you have to use a bare Atmega and C ?

author: yalect
author_rank: Regular Contributor
timestamp: August 10, 2017, 10:09:50 am
content: thank you for your repliesthe link between the two micro is through wire for about 80m I want to know the default formula to convertthe value from ADC to 7 segment display and as I said above how to shift data inside micro controller to send it serially and how to display the data from ADC to 7 segement, let use LM 35 sensor.may you help to write the full code for two micro in C++ and Arduino Uno if possible?noteI use two micro because I have 7 segement display for each micro.Regards

author: Mr. Scram
author_rank: Super Contributor
timestamp: August 10, 2017, 11:26:26 pm
content: Quote from: yalect on August 10, 2017, 10:09:50 amWe cannot do the project for you. You will need to get started and build a proof of concept, even if it is really crude. If you actually have something and get stuck, then we might be able to help you with suggestions and code examples.80 meters is a long distance for simple voltages. You might want to check Google for solutions that help you communicate between microcontrollers over those distances. Just a simple search query turned up the document below, which tells us about the problems that are to be expected. There were other links with practical solutions that you might be able to use.http://www.ti.com/lit/an/slyt441/slyt441.pdf

author: sasa
author_rank: Regular Contributor
timestamp: August 11, 2017, 06:15:52 am
content: Using analog temperature sensor (LM35) and 10-bit ADC MCU for a wide range of temperatures is not quite good combination. The LM35 provide only 0 to 1V to MCU ADC which implies many troubles... Much better choice is digital temp. sensor, as commonly used DS18B20 which have 12-bit ADC and returns digital data to MCU.Control 7-segment displays with Arduino (i.e. ATmega328p/8 or similar small MCUs) is trivial and there is many open-source projects around.Using long cable (80m) is a real problem. Notice that any wire, no matter how quality is, have its resistance and capacity - that means you need to count on quality and speed reducing. As well it must be shielded to minimize external noise...All that means large budget for quite simple project at first look... That is the main reason to carefully specify your project requirements, existed solutions and minimize project budget, no matter it is hobby, student or business project.

author: yalect
author_rank: Regular Contributor
timestamp: August 11, 2017, 08:48:55 am
content: Thank youabout long distance connection problem I will add transistor in switch mode for amplify the output data and I will minimize the frequency of transfer to prevent the long wire reactance.

author: bingo600
author_rank: Super Contributor
timestamp: August 19, 2017, 06:29:47 am
content: Quote from: yalect on August 11, 2017, 08:48:55 amMaybe RS-485 would be a good choice/Bingo

author: Mr. Scram
author_rank: Super Contributor
timestamp: August 20, 2017, 12:47:14 am
content: Quote from: yalect on August 11, 2017, 08:48:55 amHave you used Google, like I suggested before? The thread linked below has good solutions, amongst which the same RS-485 bingo600 speaks of. That seems to be a pretty good start. It pays to do your homework, as most problems have been solved by other people before, but it feels a bit like you're just relying on the replies given here.https://www.eevblog.com/forum/beginners/long-distance-serial-communication/https://www.google.com/search?q=microcontroller+long+distance+communication&oq=long+distance+commumicrocontrollerWhat have you found yourself?