Hi I'm very much a noob but slowly getting to grips with using arduino. I have two questions which I hope someone can help me with.
1.) is it possible using either a nokia 5110, or hitachi 84x48 display to make a stand alone serial monitor? I have two UNO's and would like to use different sensors (eg GPS, barometric pressure, etc.) and see the read out on a display in a similar way that the IDE serial monitor works.
I have built a Ping with the hitachi and that works well, but the code for the display is part of the program and will not accept the output from my Ublox neo6m GPS.
Please understand that for a noob like me it is a very steep learning curve, so forgive me if the question appears stupid.
2.)My second question is why do so many posted examples show up compiling errors even if I cut and paste the exact sketch and treble check it? One example is the 2nd sketch on the arduino page for nokia 3110. The first one works fine, and yes I do have the libraries correctly installed. Just confuses me
1.) is it possible using either a nokia 5110, or hitachi 84x48 display to make a stand alone serial monitor? I have two UNO's and would like to use different sensors (eg GPS, barometric pressure, etc.) and see the read out on a display in a similar way that the IDE serial monitor works.
Yes. You can take the simple code for the Nokia LCD and create a serial monitor but you probably want to think this through a bit...
The Arduino Monitor can display long lines, the Nokia will just wrap
The Arduino Monitor can display fast, the Nokia cannot (my experience)
The Arduino Monitor can be scrolled, the Nokia would need buffering in software and there is not a lots of SRAM extra in Uno
This is why most projects that use the Nokia will embed the Nokia into the project and control all display aspects: clearScreen, character X, Y position, etc. This makes the Nokia a formatted display device.
But, there is no reason you cannot do it; however you may want to check Google and the forum to see if anyone has done it already.
Sometimes, forum code will not compile because the cut&paste process is corrupted when uploaded. Sometimes, the code is not complete. Sometimes, the code is "pseudo-code" and was never meant to compile. Yes, it is frustrating. Many webpages support the "click here to copy code" script... this generally solves all of the issues.
Thank you for the reply mrburnette, the link you provided for the display is very helpful.
Now I understand why some sketches don't work when I copy them. What I have found very useful is to put a project together (mechanically), run the program, and then when it works, analyse the code and mentally de-construct it. That way it seems to make sense as to what is going on. Not got to the point where I can figure out why things don't always work, but I'l get there with some help and perserverence
I built a very simple "avoid" robot, the original used an I.R transmitter/ receiver which gave a H or L output when sensing.
As I did not have one, I built an ultrasonic pinger to do the same job. An ne555 provides the ping, and the received ping triggers a monstable that feeds a opamp comparator that gives the H or L output to the arduino and controls the motor directions.
Early days, but I'm having fun (I think ) 8)
Fun is important. You have an unlimited playbox ahead of you! Last time I did inventory in my home lab, I found 2 tubes of 555's... I have no idea why, but one time I used one in nearly circuit, whether it was needed or not