Jump to content
Rei Vilo

Thermometer with Nokia 5110 and Nokia 7110 LCD on Energia

Recommended Posts

Please find an example featuring a thermometer displayed on the Nokia 7110 LCD for Energia.

 

It uses the Nokia 7110 LCD nicely packed on a :arrow: LCD BoosterPack by SugarAddict.

 

The library is based on the :arrow: code by oPossum (Sat Mar 31, 2012 10:29 pm).

 

The internals come from the example AnalogInput_InternalThermometer_430 by Robert Wessels and Rei Vilo.

 

To do

 

Share this post


Link to post
Share on other sites

I'm sorry from being reviving this old thread, but I'm with problems using the examples with energia and I don't want to open a new thread talking about the same.

I've put the headder and the source code in the same folder and I still can't compile it with Energia. Isn't this compatible with the newer version?

Share this post


Link to post
Share on other sites

I'm sorry from being reviving this old thread, but I'm with problems using the examples with energia and I don't want to open a new thread talking about the same.

I've put the headder and the source code in the same folder and I still can't compile it with Energia. Isn't this compatible with the newer version?

 

There's no need to put the header and the source code in the same folder.

 

Just perform the following sequence:

 

post-12238-0-20800800-1373994558_thumb.png

post-12238-0-21206600-1373994567_thumb.png

post-12238-0-29995700-1373994571_thumb.png

post-12238-0-36935600-1373994573_thumb.png

post-12238-0-52716500-1373994576_thumb.png

 

It worked fine on my MacBook with the Nokia 7110. Temperature is 32.1

Share this post


Link to post
Share on other sites

I'm using a Nokia 5110 LCD, and on my Energia I don't have those Serial Port Options. I only have one "COM1" :-(

The error I got at compiling is this one:

In file included from LCD_5110.cpp:13:0:
/LCD_5110.h:45:23: fatal error: Terminal6.h: No such file or directory
compilation terminated.

Share this post


Link to post
Share on other sites

I must have deleted those files by accident. I couldn't find the files on the clone from you git I've made before...

 

Thank you very much :grin:

 

EDIT: I put all the files together and the Thermometer_430.h that was missing too and now I get this:

LCD_5110_thermometer.cpp.o: In function `setup':
C:\Users\Pedro\AppData\Local\Temp\build5736051516123509181.tmp/LCD_5110_thermometer.cpp:62: undefined reference to `Thermometer_430::begin()'
LCD_5110_thermometer.cpp.o: In function `loop':
C:\Users\Pedro\AppData\Local\Temp\build5736051516123509181.tmp/LCD_5110_thermometer.cpp:84: undefined reference to `Thermometer_430::get()'
C:\Users\Pedro\AppData\Local\Temp\build5736051516123509181.tmp/LCD_5110_thermometer.cpp:87: undefined reference to `Thermometer_430::temperatureX10()'
LCD_5110_thermometer.cpp.o: In function `__static_initialization_and_destruction_0':
C:\Users\Pedro\AppData\Local\Temp\build5736051516123509181.tmp/LCD_5110_thermometer.cpp:48: undefined reference to `Thermometer_430::Thermometer_430()'
collect2: ld returned 1 exit status

Maybe the problem is related to the serial port?

Share this post


Link to post
Share on other sites

Does the main sketch includes:

// Include application, user and local libraries
#include "LCD_5110.h"
#include "Thermometer_430.h"

Anyway, please find the project with all the files.

 

LCD_5110_thermometer.zip

 

Dealing with library may seem difficult at first. This tutorial provides a good introduction. Also, all the libraries are listed here.

 

 

Share this post


Link to post
Share on other sites

Thank you very much again. I must have changed something accidently, because all the files were in the right place. Another big stupidity done by me, I believe :oops:

Share this post


Link to post
Share on other sites

Rei -

have you used the Nokia 5110 with Energia and the Adafruit GFX library yet?  Should this work?

 

I haven't tested the GFX library. My library only displays text. Keep in mind the Nokia 5110 doesn't feature VRAM, so the GFX library uses the SRAM from the MSP430 for graphics. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...