Embedded Programming Tutorials for Beginners with Step By Step Guide.

Wednesday, October 21, 2015

Bluetooth Based Temperature Meter Project using Microcontroller and MikroC USART Terminal

Bluetooth Based Temperature Meter Project using Microcontroller and MikroC USART Terminal

In this project , we will measure surroundings temperature and it will be shown at MikroC USART Terminal . First of all we need to set up LM35  sensor with pic microcontroller and an ADC register will take data from the temperature sensor . After calculating the temperature in centigrade  it will be sent to  our computer's MikroC USART terminal through Bluetooth[HC-06] . That is the basic concepts of this project.

Bluetooth Based Temperature Meter Project using Microcontroller and MikroC USART Terminal
Bluetooth Based Temperature Meter Project using Microcontroller


We will need an ADC Converter so that microcontroller can read the temperature .

ADC [Analog to Digital Converter]:


Thief Detector using PIC Microcontroller & PIR Motion Sensor

Thief Detector using PIC Microcontroller & PIR Motion Sensor

Thief Detector using PIC Microcontroller & PIR Motion Sensor
ADCON1 Register
Basically ADC is like as voltage divider . According to voltage It produce output .
bit 5 : VCFG0: Voltage Reference Configuration bit (VREF- source)
1 = VREF- (AN2)
0 = VSS or 0 volt


bit 4 :VCFG0: Voltage Reference Configuration bit (VREF+ source)
1 = VREF+ (AN3)
0 = VDD or 5volt


We will set  VCFG0[bit 5]=0and VCFG0[bit4]=0 . So we will get highest value 5volt[1023] and lowest value 0volt[0].The ADCON1 is a 10 bit register that means  (2 to the power 10) is it's highest counting capacity and the result is 1024 . So this register can count from 0 to 1023 . When 0 volt , we get reading at RA0 pin  0 .When 5 volt , we get reading at RA0 pin 1023. It means 5volt equivalent to 1023 .
 If  1023 reading value    equal   to 5 volt.
So 1      reading value    equal   to  5/1023 volt
So 'read_val'  reading  value   equal  to (5/1023)*read_val .volt .
As we know LM35 reading can be changed  with  0.01 v per degree centigrade change , the temperature calculation should be like that :
    0.01 volt   for     1      degree centigrade Temperature
so  1     ,,       ,,  (1/0.01)   ,,         ,,              ,,
and (5/1023)*read_val    volt    for  [{(5/1023)*read_val }/0.01]  degree centigrade Temperature .


Mikro C Library Funtions :

UARTx_Init:  This function will initialize USART option of  Microcontroller with Baud rate . We will use baud rate 38400 . The code will be look like this :
 UART1_Init(38400);


UARTx_Data_Ready: This will check if it is available to read or transmit data .
UARTx_Read_Text: To read text data .Look at the example .
if (UART1_Data_Ready() == 1) {
UART1_Read_Text(  txt,  ")" , 13); }
This is checking if data is available to read . ")" means , txt car array variable will be being stored until the ")" will found . 13 means to try for 13 times . So , i think our text should not be longer than 11 character .
UARTx_Write_Text: This will send text data . Look at the example :

if (UART1_Tx_Idle() == 1) {// this will check , if the last data transmission is completed

 UART1_Write_Text("button2");
 }

Recommended: How to Interface Bluetooth Module (HC-06) with PIC Microcontroller [Step by Step Picture]




Circuit :



Bluetooth Based Temperature Meter Project using Microcontroller and MikroC USART Terminal
Bluetooth Based Temperature Meter Project using Microcontroller and MikroC USART Terminal

Source Code :


 char txt[8];  
 double chk;  
 int i=0,ckop=0;  
 void main() {  
 ADCON1=0x0E;         // Configure RE1 pin as input  
 CMCON=7;  
 for(i=0;i<16;i++){txt[i]=' ';}  
   TRISA.F3=1;  
    TRISA.F4=1;        // Initialize ADC  
 Adc_Init();  
   UART1_Init(38400);  
      delay_ms(200);            // Initialize LCD  
  while(1){  
  chk=Adc_Read(0);  
  chk=(chk*5)/1023;  
  chk=chk/0.01;  //10mV == 1 degree
  inttostr(chk,txt);  
  UART1_Write_Text(" Temperature:");  
  UART1_Write_Text(txt);  
  UART1_Write_Text(" \n");  
  delay_ms(6000);  
 }  
 }  

Result:


Bluetooth Based Temperature Meter Project using Microcontroller and MikroC USART TerminalBluetooth Based Temperature Meter Project using Microcontroller and MikroC USART Terminal

Bluetooth Based Temperature Meter Project using Microcontroller and MikroC USART Terminal




Download This Project

Thank You!

 

85 comments:

  1. Microsoft Toolkit is the most recent variant programming that is utilized to enact Microsoft items, for example, Windows and MS Office, Microsoft Word and Excel.

    It is the option of KMSPico Activator it works nearly the equivalent however has a few new capacities. This is the best apparatus to initiate any Windows, for example, Windows 10, 8.1, 8, 7, Vista and furthermore Windows XP.

    This doesn't help you in actuating Windows just yet you can likewise initiate Microsoft office. It is a 100% protected and secure activator on the web. It doesn't comprise of a malware and infection you can enact it with no issue.


    microsoft toolkit

    serial key

    ReplyDelete
  2. I really like reading through a post that can make people think. Also, many thanks for permitting me to comment!
    best toddler mattresses for children

    ReplyDelete
  3. webuildmn An extensive network of tradespeople, vendors and
    suppliers complements our service and allows
    flexibility of design and almost limitless selections.

    We look forward to helping you realize the project
    of your dreams.

    ReplyDelete
  4. If you have an electric power washer, keep in mind it can be a shocking experience if water comes in contact with electricity. Use a heavy-duty extension cord. They look like long orange snakes. Also, be extremely careful washing around the electrical service line. That's the line connecting your house to the telephone pole. Wash gingerly around cable and telephone lines, too, not to mention the electric or gas meter. If there are pressure washing college park tape them shut with electrical tape.

    ReplyDelete
  5. You'll need to use the right chemicals, equipment, and have the nozzle that allows you to soft wash. These chemicals are very strong, so you have to use the correct dilution to get results without leaving a film or damage to the surface.peachtree city pressure washing

    ReplyDelete

  6. New CrackWith  Keygen[Latest] | Easy To can be just really an exact productive and robust tool for several levels of design out of ancient stages for the conclusion of evolution. In addition to programming diagrams, designing info, documentation, Plus more may achieve utilising this specific particular specific application. Additionally, it is suitable for various sorts of systems,
    New Crack

    ReplyDelete
  7. I wanted to thank you for this very good read!! I definitely enjoyed every bit of it. I have got you bookmarked to look at new stuff you post…
    societal

    ReplyDelete
  8. Vegas vr has a lot of obstacles to overcome and one of the main ones is simply getting players into a VR headset. Key to the industry’s growth is democratization and increased accessibility but an underrated aspect of this is location-based VR like Nomadic’s Arizona Sunshine: Contagion Z experience.

    ReplyDelete
  9. The key component of their development is remote temperature sensors that can detect temperatures up to 400 feet away.CAREL Malaysia

    ReplyDelete
  10. I recently found many useful information in your website especially this hostname incoming mail server blog page. Among the lots of comments on your articles. Thanks for sharing.

    ReplyDelete
  11. I am very happy to read this article because this article very easy for reading and this is very amazing article.
    Virtual DJ Pro Crack

    ReplyDelete
  12. i was simply perusing along and happened upon your online journal. simply needed to say great website and this article truly helped me.
    prevention systems

    ReplyDelete
  13. Wonderful piece of content! I absolutely treasured that browsing. I hope to read simple things a bit more by you. There’s no doubt that you’ve very good coming and in addition imagination. I’m certainly tremendously delighted utilizing this type of info. Multilayer PCB

    ReplyDelete
  14. Blackheads are https://unbiased10.com/best-blackhead-remover/
    certainly the last stage of pimple development and they tend to stay like a scar or a trail showing that a pimple has lived for so much time.

    ReplyDelete
  15. Movavi-Video-Editor key
    makes it possible for us to edit our videos in a friendly atmosphere. This program is permitted to download third-party software that isn’t compulsory but mandatory for editing of any video. It is possible also to do editing on video and our internet browsers. You might also alter our recorded videos. It creates the user’s mind by incorporating effects in ways that are different.IDM Crack Setup

    ReplyDelete
  16. Nice blog provide much information if you want to look for some beautiful
    evening gowns you can visit the centraldress a unqiue store for women wear

    ReplyDelete
  17. hi,your post is very informative. Thank you very much for sharing this site here. I love this site.<a href="https://bestcameraunder300.wordpress.com/2020/09/08/best-gaming-monitor-under-200/>Best gaming monitor under 200</a>

    ReplyDelete
  18. http://www.pictutorial.net/2015/10/microcontroller-project-bluetooth-based-temperature-meter-using-uart.html?showComment=1594894093190#c8377476819942103456

    ReplyDelete
  19. I was more than happy to uncover this great site. I need to to thank you for your time due to this fantastic read!! I definitely enjoyed every bit of it and I have you bookmarked to see new information on your blog.
    Best IT Company In Lahore

    ReplyDelete
  20. Hey! i love this site,I like the helpful information you provide on your articles.visit our article as well as this informative article. best paver sealer

    ReplyDelete
  21. I got what you mean , a debt of gratitude is in order for posting .Woh I am cheerful to discover this site through google.

    Web Organization

    ReplyDelete
  22. Somebody Sometimes with visits your web journal consistently and prescribed it as far as I can tell to peruse also. The method for composing is fabulous furthermore the substance is first rate. Much obliged for that understanding you give the perusers!
    I can't envision concentrating sufficiently long to research; considerably less compose this sort of article. You've beaten yourself with this material. This is extraordinary substance.
    Biggest Web

    ReplyDelete
  23. This comment has been removed by the author.

    ReplyDelete
  24. Very good write-up. I certainly love this website. Thanks! Best Wax Melt

    ReplyDelete
  25. This comment has been removed by the author.

    ReplyDelete
  26. I was more than happy to uncover this great site. I need to to thank you for your time due to this fantastic read!! I definitely enjoyed every bit of it and I have you bookmarked to see new information on your blog.

    Hosting Companies

    ReplyDelete
  27. This excellent website truly has all of the info I wanted concerning this subject and didn’t know who to ask.
    Security Camera Installation In Northern Virginia

    ReplyDelete
  28. Thanks for the great article. It helps us a lot to discover more about this topic.
    Visit our article as well as this informative article. Best drugstore smoothing primer

    ReplyDelete
  29. Excellent article. Very interesting to read. I really love to read such a nice article.visit our article as well as this informative article.best memory for ryzen 2700x

    ReplyDelete
  30. Amazing and information post check amazon product related post.best memory for ryzen 2700x

    ReplyDelete
  31. Very good write-up. I certainly love this website.view this link for more info.Best yankee Candle Scents

    ReplyDelete
  32. Doing the examination is absolutely justified, despite all the trouble since it makes picking accessories considerably more basic. Best Jump Starters for Cars

    ReplyDelete
  33. They need to pay heed to the various pieces of the vehicle so they can keep any possible issues from occurring. While considering plans to fix or fix the vehicle, they must be reasonable. Best Bluetooth Car Kits

    ReplyDelete
  34. Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work. download kmspico

    ReplyDelete
  35. I was more than happy to uncover this great site. I need to to thank you for your time due to this fantastic read!! I definitely enjoyed every bit of it and I have you bookmarked to see new information on your blog.

    Best Floor Standing Speakers

    ReplyDelete
  36. This online journal site is really cool! How was it made !
    Polk Audio T50

    ReplyDelete
  37. "This is a very nice article and information by the admin… i like it.. keep sharing information like it.. will visit your site again for such kind of articles
    Enscape3D Crack"

    ReplyDelete
  38. This is artical is very informative for me. I really like this post. If you need more informative post just click on the link. Check out How To Make a Great Kilt.

    ReplyDelete
  39. I am very happy to say that this is an interesting post. I learned new information from your article, you are doing a great job. Thanks for sharing this kind of blog. watlow pm6

    ReplyDelete
  40. I think this is one of the most significant information for me. And i’m glad reading your article. Thank for sharing! Nitro Pro Crack/a>

    ReplyDelete
  41. It’s not my first time to pay a quick visit this web
    site, i am visiting this site dailly and obtain fastidious data from here
    daily.

    movavi video editor crack
    net protector crack
    gaana pro apk

    ReplyDelete
  42. Please let me know if you’re looking for an author for your weblog.
    You have some really good posts and I believe I would be a good asset.
    If you ever want to take some of the load off, I’d love to
    write some content for your blog in exchange for a link back to mine.
    Please send me an email if interested. Thanks!
    microsoft visio product key
    filebot license key
    cleanmymac x crack
    mixcraft pro studio crack

    ReplyDelete
  43. I like your website that's why i come to comment on your website.

    ReplyDelete
  44. Fantastic blog! What advice do you have for aspiring writers?
    I hope to start my page soon, but I am a bit
    lost in total. Would you suggest starting with
    a free platform like WordPress, or do you opt for the paid option? There are so many options that I am completely overwhelmed.
    Some suggestions? Thank you!
    g data antivirus crack
    emsisoft anti malware crack

    ReplyDelete
  45. Fantastic blog! What advice do you have for aspiring writers?
    I hope to start my page soon, but I am a bit
    lost in total. Would you suggest starting with
    a free platform like WordPress, or do you opt for the paid option? There are so many options that I am completely overwhelmed.
    Some suggestions? Thank you!
    google nik collection crack

    ReplyDelete
  46. I was more than happy to uncover this great site. I need to to thank you for your time due to this fantastic read!!
    I definitely enjoyed every bit of it and I have you bookmarked to see new information on your blog.
    Classified Ads WordPress Theme

    ReplyDelete
  47. I was more than happy to uncover this great site. I need to to thank you for your time due to this fantastic read!!
    I definitely enjoyed every bit of it and I have you bookmarked to see new information on your blog.
    Freelance Marketplace WordPress Theme

    ReplyDelete
  48. I was more than happy to uncover this great site. I need to to thank you for your time due to this fantastic read!!
    I definitely enjoyed every bit of it and I have you bookmarked to see new information on your blog.
    Freelance Marketplace WordPress Theme

    ReplyDelete
  49. I was more than happy to uncover this great site. I need to to thank you for your time due to this fantastic read!!
    I definitely enjoyed every bit of it and I have you bookmarked to see new information on your blog.
    Classified Ads WordPress Theme

    ReplyDelete
  50. I was more than happy to uncover this great site. I need to thank you for your time due to this fantastic read!!
    I definitely enjoyed every bit of it and I have you bookmarked to see new information on your blog.
    Freelance Marketplace WordPress Theme

    ReplyDelete
  51. This is very interesting, you are a skilled blogger. I have added your feed and hope to keep looking for more
    great posts. Plus, I have shared your website on social media!
    cockos reaper crack
    emeditor professional crack

    ReplyDelete
  52. Choosing the correct stream meter is a significant piece of synthetic handling. It will tell you whether your preparing gear works appropriately or there is an issue. With the right Chemical Flow Meter, you can gauge stream precisely and recognize whether there is any break in the pipelines. Also, these meters will tell you how much liquid you are utilizing at present. In a word; with the correct meter, you can deal with an exact cycle control.www.scientificdevices.org

    ReplyDelete
  53. I was more than happy to uncover this great site. I need to thank you for your time due to this fantastic read!!
    I definitely enjoyed every bit of it and I have you bookmarked to see new information on your blog.
    Freelance Marketplace WordPress Theme

    ReplyDelete
  54. I was more than happy to uncover this great site. I need to thank you for your time due to this fantastic read!!
    I definitely enjoyed every bit of it and I have you bookmarked to see new information on your blog.
    Freelance Marketplace WordPress Theme

    ReplyDelete
  55. I was more than happy to uncover this great site. I need to thank you for your time due to this fantastic read!!
    I definitely enjoyed every bit of it and I have you bookmarked to see new information on your blog.
    Freelance Marketplace WordPress Theme

    ReplyDelete
  56. I was more than happy to uncover this great site. I need to thank you for your time due to this fantastic read!!
    I definitely enjoyed every bit of it and I have you bookmarked to see new information on your blog.
    Freelance Marketplace WordPress Theme

    ReplyDelete
  57. I was more than happy to uncover this great site. I need to thank you for your time due to this fantastic read!!
    I definitely enjoyed every bit of it and I have you bookmarked to see new information on your blog.
    WordPress Chat Plugin

    ReplyDelete
  58. I was more than happy to uncover this great site. I need to thank you for your time due to this fantastic read!!
    I definitely enjoyed every bit of it and I have you bookmarked to see new information on your blog.
    humidifier dehumidifier combo

    ReplyDelete
  59. Easy Video Maker 8.69 Crack is a new video editing software that creates high-quality video clips such as 2D / 3D movies or can easily edit and manage them. Also, this program has many components and tools that help you create a video of your choice.
    Easy Video Maker Crack



    ReplyDelete
  60. Its genuinely strong for you from a general viewpoint all window programming establishment. This site is confounding its article are focal and misusing. I appreciated and bookmark this site on my chrome. This is the place where you can get all break programming in like manner present in clear way.
    https://letcracks.com/<a

    ReplyDelete
  61. Its truly solid for you from an overall perspective all window programming foundation. This site is puzzling its article are central and abusing. I appreciated and bookmark this site on my chrome. This is where you can get all break programming in like way present in clear manner.
    https://cracksmad.com/

    ReplyDelete
  62. it is the best website for all of us. it provides all types of software and apps which we need. you can visit this website.
    https://cracksmod.org/

    ReplyDelete
  63. Thanks for sharing this post. Your work is amazing. You can also check out vstfine Crack for Free. You can also visit the

    Bandicam Crack
    Adobe After Effects CC 2021 Crack
    Tenorshare ReiBoot Pro Crack
    Adobe Photoshop CC Crack
    Ummy Video Downloader Crack
    Any Video Converter Pro Crack
    Adobe Acrobat Pro Crack
    Flvto Youtube Downloader Crack
    Knowledge Has No End Limits Keep Sharing Your Knowledge//

    ReplyDelete
  64. Hello! thumbs up for your great info . I will be coming back to your site for more soon.
    Best Shoes for HIIT
    myshoesreviews

    ReplyDelete
  65. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.
    Very interesting blog.
    fullcrackedpc.com
    vsthomes.com
    licenselinks.info
    softwindowz.com
    fullcrackerz.co

    ReplyDelete
  66. Hello! I just wish to offer you a big thumbs up for your great info you have right here on this post. I will be coming back to your site for more soon.
    Best Shoes for Standing on Concrete
    myshoesreviews

    ReplyDelete
  67. Hello! I just wish to offer you a big thumbs up for the great info you have right here on this post. I will be coming back to your site for more soon.
    Best Shoes for Wide feet
    myshoesreviews

    ReplyDelete
  68. Nice information. Thanks for sharing content and such nice
    information for me. I hope you will share some more content about.
    Please keep sharing

    IDM Crack Build Patch With Serial Key Free

    ReplyDelete
  69. Wow, great blog structure! How long do they have?
    have you ever blogged? you made blogging easy.
    The whole look and feel of your site is amazing, not to mention
    contents!
    malwarebytes crack
    malwarebytes anti malware crack
    malwarebytes crack
    malwarebytes key

    ReplyDelete

Course by The University of Texas at Austin

(FREE Edx Course) Embedded Systems - Shape The World: Microcontroller Input/Output. Offered by The University of Texas

Become a Robotics Software Engineer- Udacity Course

Ain't getting any visitors!
Please Share and Bookmark posts.

Tags

: (1) 18F2550 (1) 36KHz (3) and (1) arduino (1) Based (1) battery (1) Bipolar (1) Blinking (1) blinks (1) Bluetooth (1) bluetooth device interfacing (1) bluetooth module (1) button (1) circuit (1) clock (1) control (1) crystal oscillator (3) Db9 (1) DC Motor (2) digital (2) Digital Voting Machine (1) digital voting machine using pic (1) display (2) DS1307 (1) electronic (1) embedded c programming tutorial (11) embedded c tutorial (11) experiment kit (4) external interrupt (4) flash (1) flashing (1) Gas Leakage detector (1) HC-06 (1) home (1) how (1) How to (10) i2c tutorial (1) in (1) indicator (1) infrared Connection (3) interface (8) interfacing (3) Interrupt (3) Introduction (1) IR Connection (3) IR Receiver (4) IR Transmitter (4) key pad (1) keyboard (1) keypad (1) lavel (1) Lcd 16x2 (2) lcd 2x16 (2) led (1) lm35 (2) LPG (1) machine (1) make (1) Make bootloader (1) making (1) matrix (1) max232 (1) membrane keyboard (2) meter (2) Micocontroller (1) microchip (4) microchip pic (2) microchips (3) microcontroller (9) microcontroller based (3) microcontroller programming (3) Microcontroller Project (4) Microcontroller Projects (1) microcontroller_project (2) microcontrollers (4) Microprocessor (2) mikroC (5) mikroc code to start and stopstart and stop dc motor (1) mikroc pro for pic (2) Motion detector (1) MQ-9 Gas Sensor (1) musical (1) NEC Protocol (4) pcb (5) PIC (3) pic controller (11) pic microcontroller (11) pic microcontroller tutorial (11) pic programming (1) pic programming in c (12) pic proteus (1) Pic Tutorial (12) pic18 (2) pic18f2550 (11) picmicrocontroller (4) picRFモジュール (1) PIR Motion Sensor (1) printed circuit board (1) proteus (6) pulse width modulation (1) push (1) push button (1) PWM (1) real (1) rf transmitter (3) Rs 232 (1) Rs232 (1) scroll (1) scrolling (1) Serial communication (1) Serial Connection (1) Serial Port (1) serial port rs232 (1) Servo Motembedded c programming tutorial (1) simulation (2) Soil Moisture Meter (1) speed control (1) step by step (7) step bystep (1) Stepper Motor (2) text (2) Thief Detector (1) time (1) timer (4) timer0 (4) tone (1) TSOP38236 Receiver (4) tutorial (2) Unipolar (1) USART Connection (1) USB (1) usb 1.0 (1) USB bootloadere (1) USB HID (1) using (9) voltmeter (1) voting (1) water level indicator (3) with (2) work (1)

Traffic Feed


Live Traffic Feed
Visitor Tracking

Leave Your Message Here

Name

Email *

Message *

Like on Facebook