Fredy AlvarezBoian Mitov
Published © GPL3+

Visuino - Sensor of Temperature Using LM35 and Display LCD 1

A brief introduction to the environment of visual programming for Arduino using classic elements of electronics.

BeginnerShowcase (no instructions)6,506
Visuino - Sensor of Temperature Using LM35 and Display LCD 1

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
LCD 16x2 HD44780
×1
LM35 Centigrade temperature sensor
×1

Software apps and online services

Visuino - Graphical Development Environment for Arduino
Visuino - Graphical Development Environment for Arduino

Hand tools and fabrication machines

Visuino

Story

Read more

Schematics

Schematic circuit

Code

Visuino - Temperature sensor LM35 with LCD 16x2

C/C++
This is the code generated by Visuino to the moment to send it to the IDE of Arduino.
//----------------------------------------------
//
//        Sketch Generated by Visuino
//              www.visuino.com
//
//----------------------------------------------

#define VISUINO_ARDUINO_UNO

#include <Mitov.h>
#include <OpenWire.h>

#include <Wire.h>
#include <LiquidCrystal.h>  // The LCD library https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home needs to be installed trough the Arduino IDE for this Scetch to compile!
#include <Mitov_LiquidCrystalDisplay.h>
#include <Mitov_Snapshot.h>
#include <Mitov_BinaryGenerators.h>
#include <Mitov_Math.h>

// Arduino Board DeclarationsArduino Board Declarations

namespace BoardDeclarations
{
Mitov::ArduinoAnalogInputChannel ArduinoAnalogInputChannel_0( 0 );
Mitov::ArduinoDigitalChannel ArduinoDigitalChannel_4( 4, true, false, false, false, true );
Mitov::ArduinoDigitalChannel ArduinoDigitalChannel_5( 5, true, false, false, false, true );
Mitov::ArduinoDigitalChannel ArduinoDigitalChannel_6( 6, true, false, false, false, true );
Mitov::ArduinoDigitalChannel ArduinoDigitalChannel_7( 7, true, false, false, false, true );
Mitov::ArduinoDigitalChannel ArduinoDigitalChannel_8( 8, true, false, false, false, true );
Mitov::ArduinoDigitalChannel ArduinoDigitalChannel_9( 9, true, false, false, false, true );
} // BoardDeclarations

// Arduino Board DeclarationsDeclarations

namespace Declarations
{
Mitov::LiquidCrystalDisplay LiquidCrystalDisplay1( new LiquidCrystal( 8, 9, 4, 5, 6, 7 ), 16, 2 );
Mitov::LiquidCrystalElementTextField TArduinoLiquidCrystalElementTextField1( LiquidCrystalDisplay1 );
Mitov::LiquidCrystalElementTextField TArduinoLiquidCrystalElementTextField2( LiquidCrystalDisplay1 );
Mitov::LiquidCrystalElementTextField TArduinoLiquidCrystalElementTextField3( LiquidCrystalDisplay1 );
Mitov::LiquidCrystalDisplayInput<Mitov::LiquidCrystalElementTextField, &TArduinoLiquidCrystalElementTextField3, float> TArduinoLiquidCrystalElementTextField3_InputFloat_1;
Mitov::Snapshot<float> AnalogSnapshot1( 0.0f );
Mitov::PulseGenerator PulseGenerator1;
Mitov::MultiplyByValue MultiplyByValue1;
Mitov::AddValue AddValue1;
} // Declarations

//The setup function is called once at startup of the sketch
void setup()
{
  BoardDeclarations::ArduinoAnalogInputChannel_0.OutputPin.Connect( Declarations::MultiplyByValue1.InputPin );
  Declarations::TArduinoLiquidCrystalElementTextField1.InitialValue = "www.visuino.com";
  Declarations::TArduinoLiquidCrystalElementTextField2.InitialValue = "Temp: ";
  Declarations::TArduinoLiquidCrystalElementTextField2.Row = 1;
  Declarations::TArduinoLiquidCrystalElementTextField3.Column = 6;
  Declarations::TArduinoLiquidCrystalElementTextField3.Row = 1;
  Declarations::AnalogSnapshot1.OutputPin.Connect( Declarations::TArduinoLiquidCrystalElementTextField3_InputFloat_1.InputPin );
  Declarations::PulseGenerator1.Frequency = 3;
  Declarations::PulseGenerator1.OutputPin.Connect( Declarations::AnalogSnapshot1.SnapshotInputPin );
  Declarations::MultiplyByValue1.Value = 100;
  Declarations::MultiplyByValue1.OutputPin.Connect( Declarations::AddValue1.InputPin );
  Declarations::AddValue1.Value = 10;
  Declarations::AddValue1.OutputPin.Connect( Declarations::AnalogSnapshot1.InputPin );

  OpenWire::Component::_SystemInit();
}

// The loop function is called in an endless loop
void loop()
{
  OpenWire::Component::_SystemLoop();
}

Visuino

Credits

Fredy Alvarez

Fredy Alvarez

3 projects • 18 followers
Digital Systems and Communications Engineer, Currently working at the UACJ (Networker). Studying the Master's Degree in Cloud Computing..
Boian Mitov

Boian Mitov

75 projects • 438 followers
CEO of Mitov Software, and creator of Visuino

Comments