2015年1月28日星期三

By my solution, the wise man correct their own

In relation to raspberry pi touchscreen, all of us will think about sainsmart. To be a individual that is begin to play with Python and understand anything gradually. I've confronted some issues and I require some advices.
The first problem is usually to use a raspberry pi touchscreen. I have appeared plenty of different touch screens. Nonetheless, it's challenging to get them to work. Just one requirement is use of the GPIO pins although the primary just one is not difficult to setup.

The second problem is I need a tutorial on how to make the touchscreen perform in Python or other computer system programming language. I need to put some graphic buttons on the display that once i touch one of them the program executes an connected regimen. I have searched but found nothing over it.
The last point is about printer and this is why the need with the GPIO pin accessibility with the touchscreen. It's going to be much better to possess a modest thermal printer can hook up and print code conveniently. I realize this a good deal and that i want to place jointly a tutorial on how to set up touch buttons around the screen.
All these troubles are actually solved till I discovered a PiTFT for raspberry pi that has a 2.8" show with 320x240 16-bit shade pixels and a resistive contact overlay. The plate employs the high speed SPI interface within the Pi and can utilize the mini screen for a console, X window port, displaying illustrations or photos or video clip and so forth. It may works nicely together with the Pi Product A or B and in addition, it healthy the Design B properly.

Reading the buttons and features of LCD Keypad Shield

The sainsmart LCD Keypad Shield has a handy 16-character by 2-line display, 5 buttons and a controllable backlight, plug it straight in on top of your Arduino controller boards. The display is set behind the shield for a low profile fitment and nice look and we've included panel mounting screw holes in the corners.

The buttons provide "left", "right", "up", "down", and "select" while using just one analog input. That leaves the other analog inputs free for you to use in your projects.
A0, using a chain of resistors that causes a different reference voltage to be applied to A0 depending on which button is pressed.If no button is being pressed,the voltage on A0 will be pulled all the way up to 5V by the 2K resistor called R6. In that situation none of the other resistors have any effect at all, and the analog reading on A0 will be hard on the upper limit of 1023. Therefore if you perform an analogRead() call on A0 and it returns 1023 (or any value above about 1000) you know that no buttons are being pressed.
The same principle is also applies for the other buttons.
Features:
16x2 LCD using HD44780-compatible display module
5 buttons on one analog input
LCD backlight with current limiting, brightness and on/off controllable by D3, can be moved to a number of other pins for easy project pin compatibility
Recessed LCD, panel mount screwholes and button layout suitable for panel or cabinet mounting if desired.
Reset button
Power supply smoothing capacitor
Gold-plated PCB for maximum durability
Overlay printed on both top and bottom
Pins used by shield clearly marked, LiquidCrystal library setup reference is on the bottom of the pcb for convenience.
Overlay printed on both top and bottom
Pins used by shield clearly marked, LiquidCrystal library setup reference is on the bottom of the pcb for convenience.

2015年1月26日星期一

High or low, it's up to you

By using the sainsmart LCD Keypad Shield,we can control the intensity of the backlight with the Arduino digital pin D3.That is to say,the backlight will become on and off if you set the pin D3 high or low.It's up to you.
First of all,we can Vary Backlight Intensity:

Generally speaking,We choose pin which is capable of "PWM",to control the backlight. such as Arduino pin D3. Using PWM you can vary the intensity of the backlight by setting pin D3 to different levels between 0% and 100% using the analogWrite() function.
If you want to combine the sainsmart LCD Keypad Shield with another shield which also uses Arduino pin D3, you may want to change the backlight control over to another Arduino pin. Fortunately,the shield is designed to make this easy to do.
The pair of pads labelled "D3" is connected on the PCB by a tiny track which you can easily see, so the first step is to use a sharp knife to cut the track between the two pads.
Now that you've disconnected Arduino pin D3 from the backlight control, you can either leave the backlight control disconnected entirely (in which case it will be permanently on) or connect it to a different pin using one of the other pairs of jumpers.
Pick the pin you want to use to control the backlight, please remember that not all pins can do PWM,so you may only be able to turn the backlight on or off rather than vary its brightness, and connect those pads by using a drop of solder.

Some parameters of Arduino Uno R3

Sainsmart Uno R3 is usually a microcontroller board dependent to the ATmega328. It's got 14 digital input/output pins, 6 analog inputs, a sixteen MHz crystal oscillator, a USB connection, a power jack, an ICSP header, and a reset button. It has almost everything essential to support the microcontroller. It is easy to attach it to a computer by a USB cable.

The board can function on an external supply of six to twenty volts. If supplied with considerably less than 7V,the 5V pin could provide less than five volts and the board might be unstable. If working with a lot more than 12V, the voltage regulator may perhaps overheat and hurt the board. The perfect range is seven to twelve volts.
The power pins:
VIN. The input voltage to the Arduino board when it making use of an external electric power source. It is possible to provide voltage by using of this pin.
5V. The regulated power supply to power the microcontroller as well as other elements around the board. This tends to appear either from VIN through an on-board regulator, or be equipped by USB or an additional regulated 5V source.
3V3. A 3.3 volt supply generated by the on-board regulator.
GND. Ground pins.
The Arduino Uno contains a lot of components to communicating with a computer, another Arduino, or other microcontrollers. The ATmega328 presents UART TTL (5V) serial conversation, which happens to be readily available on digital pins 0 (RX) and one (TX). An arduino ATmega8U2 on the board channels this serial communication above USB and seems like a digital comport to software program on the computer.On the other hand, on Windows, a .inf file is required. The Arduino software has a serial monitor which allows textual statistics to generally be despatched to and from the Arduino board

2015年1月23日星期五

Each has specialized skills

Arduino and Raspberry Pi (now many of them have a very Raspberry Pi touchscreen accessory in the operates) tend to be the two match for novices if they had been utilized as instructing equipment. Nevertheless, when examined their factors and software program, you might find that they're employed for different sorts of assignments.

In reality, Arduino and Raspberry Pi are distinctive. To begin with, Raspberry Pi is definitely a comprehensively beneficial laptop computer or laptop, although Arduino is definitely a microcontroller, which is simply a a person component of the computer.
Raspberry Pi, which was produced in the Uk, was invented by Eben Upton and his colleagues around the College of Cambridge. It were created to become an economical notebook for growing tinkering skills.
Nevertheless, the Arduino, which was born in Italy, was named proper once the bar where the inventor named Massimo Banzi extremely initially surface up though using the assumed.
You will discover no large distinctions among the Arduino and Raspberry Pi in price and proportions given that they are truly all low-priced and tiny (The most important online store is sainsmart). Which make them numerous was the points inside.
The Raspberry Pi is undoubtedly an unbiased computer that can operate an genuine functioning approach in Linux. It could multitask, assist two USB ports, hook up wirelessly On the internet and is forty instances additional fast than an Arduino in terms of clock rate.
Nevertheless it truly is not point out that Raspberry Pi is greatest than Arduino, in relation to application apps. Arduino's simplicity was far superior for pure components work opportunities than Raspberry Pi. As an illustration, for people who needed to write a system to blink an LED with Raspberry Pi, you should established up an working process and a few code libraries and that's to be able to start off. Despite the fact that on Arduino, you may get an LED gentle to blink in only 8 strains of code. Because Arduino isn't made for plenty of computer software package, you'll be able to just plug it in and possess started out.
Inside of of a phrase, the Raspberry Pi is best in software program software package despite the fact that the Arduino helps make components employment more easily than Raspberry Pi. It is actually feasible to determine on amongst these will count on your must have.

2015年1月22日星期四

You deserve a perfect LCD Contrast

This is a guide to adjusting LCD Contrast for your sainsmart LCD Keypad Shield. It also can be used to other type LCDs in Arduino projects.
YASURS Mega2560 R3 + 1602 LCD Keypad Shield V3 For Arduino UNO MEGA R3 ATMEL AVR
The sainsmart LCD Keypad Shield uses a standard alphanumeric type LCD which has a contrast pin can be adjusted by the area designed into the top right corner of the board.
The LCD contrast can be made higher by setting the contrast pin to a lower voltage.
If your board has R1 on it (a 10K pullup), simply remove R1 with a soldering iron to do this. This is especially useful in colder temperatures or with lower voltage levels into the 5V pin of the board.

Fine adjustment:

Very fine adjustment isn't usually needed because our LCDs are a wide temperature range type, if you really want to fine adjust your LCD contrast voltage there are two solutions:
The one is to change the R1 and R10 resistor values to set your desired LCD contrast voltage. R1 and R10 form a common resistor divider to set the LCD contrast voltage into the display.
The other way is toplace a 10K trimpot onto the VR1 footprint, removing R1 and R10, then adjust the VR1 trimpot to any desired contrast setting. You have an optional footprint to accept most common surface mount 10K trimpots like the Bourns 3314J type.
If your LCD contrast is still weak and R1 is already removed, check the voltage at the 5V pin into the LCD Keypad Shield. Sometimes the 5V rail can be low from a weak USB port or cable source (less than around 4.6V) and the LCD pixels look weak when driven with a too-low 5V rail voltage.

2015年1月20日星期二

Basic knowledge of LCD keypad shield

The LCD keypad shield can connect directly to the Arduino Diecimila Duemilanove, UNO, MEGA1280,and MEGA2560 board. The LCD panel displays characters in white with a blue backlit and can display up to two lines of 16 characters.
YASURS Mega2560 +1602 LCD Keypad+Prototype Shield Kit for arduino ATMEL ATMEGA

The features of sainsmart LCD keypad shield:

This is a 16x2 LCD Keypad shield which can fit for Arduino Diecimila Duemilanove, UNO, MEGA1280,and MEGA2560 board.

Blue Backlight with white words, adjustable backlighting.

5V operating voltage

5 button keypad – up, down, left, right, and select which leaves the other analog inputs free for you to use in your projects.The buttons are arranged in a handy pattern and referred to as UP, DOWN, LEFT, RIGHT, and SELECT, but of course it's totally up to your sketch to decide what to do when any particular button is pressed.

It can work perfectly in 4-bit mode with the "LiquidCrystal" library included with the Arduino IDE, which allows you to control the LCD with a total of just 6 digital I/O lines. We've deliberately picked D4-D9 so that it doesn't interfere with pins required by other popular products such as the Ethernet Shield and EtherTen, so you can stack this on top of other shields to give you a local display.

2015年1月19日星期一

An introduction of LCD Keypad Shield

The 16x2 sainsmart LCD Keypad Shield is easily to use generally because it is really entirely compatible using the Arduino "LiquidCrystal" library. You could potentially initialise the Liquid crystal display and exhibit messages on it with just a couple lines of code.However, it will add you the difficulty to do the projects.For example, displaying menu items and picking them to use the buttons.
YASURS Mega2560 R3+1602 LCD Keypad Shield Kit For ATMEL ATMEGA8U2 AVR
What the power environment does the LCD Keypad Shield require?
The Lcd & Keypad Shield needs a good 5V electric power supply to ensure the backlight totally illuminates and the display contrast is high,if you power your Arduino from USB together with the Liquid crystal display Protect attached you may experience a voltage drop over the USB cable.

If you have trouble with dispiay contrast or backlight brightness, try attaching a power supply of around 7 to 9Vdc to the 2.1mm DC jack on the Arduino. A typical symptom in an undervoltage situation is that one line of the LCD will present pale rectangles in place of the characters, and the other line will clearly show nothing at all. The Arduino may even continue running normally since it is very happy at just 4V or so, but the LCD Keypad Shield won't function.
What the Library does the LCD Keypad Shield need?
All the hard work of interfacing with all the Liquid crystal display Shield is handled by the LiquidCrystal library, which is included as part of the official Arduino distribution. You can check whether you have it installed by starting up the IDE and looking under Files -> Examples -> LiquidCrystal. If it exists, you can do.

2015年1月18日星期日

Some tips about Raspberry Pi projects

The Raspberry Pi is absolutely a demand card-sized single-board laptop coded while in the Uk via the Raspberry Pi Foundation employing the goal of marketing the training of elementary data technological innovation in schools.The Raspberry Pi is a wonderful platform which youngsters (or anyone) can discover ways to system and use their specific computer. My buddies are making use of them staying an interface for each and every sort of science experiments understanding tips on how to code applying the Python programming language and taking advantage of another Raspberry Pi similar to a media center. I furthermore pay a visit to my area hackerspace and discover what many people are doing applying the Raspberry Pi. You will need to search for a hackerspace in the town for support!Incidentally, SainSmart can also be has a lot of Raspberry Pi to pick out from.

Using a Raspberry Pi,you are able to make an application to deal with your lights outside of your watch. Raspberry Pi's typical intent input output hooks emulate pressing off and on switches. In by carrying out this, you are able to activate your lights jointly together with your mouse,as an alternative to bodily going to the sunshine switch.
Getting a Raspberry Pi,you could possibly produce a Temperature And Humidity Sensor by hooking up your Raspberry Pi to some DHT11 sensor.Irrespective of the point that you aren't dwelling, chances are you'll also appear into the exact humidity and temperature by having an Internet handle.Having said that,you will find almost nothing that you could do concerning this if the temperature begins switching.
Aquiring a Raspberry Pi,you do not have to invest in a electronic photo body,chances are you'll make it with each other along with your Raspberry Pi completely free of charge.
It are not able to just screen photos, but furthermore can exhibit seasons, flicks and so on.
Getting a Raspberry Pi,you're able to establish a Raspberry Pi touch screen.It is really quite low cost and should spark a brainwave of doable other raspberry pi tablet projects

2015年1月12日星期一

With Raspberry Pi,the sky is the limit

As wikipedia said:The Raspberry Pi is a credit card-sized single-board computer developed in the UK by the Raspberry Pi Foundation with the intention of promoting the teaching of basic computer science in schools.The Raspberry Pi is a fantastic platform on which kids (or anyone) can learn to program and work with their very own computer. My friends are using them as an interface for all sorts of science experiments learning to code with the Python programming language and using another Raspberry Pi as a media center. I also visit my local hackerspace and see what other people are doing with the Raspberry Pi. You should seek out a hackerspace in your area for assistance!By the way, SainSmart is also has a large number of Raspberry Pi to choose from.

Yasurs™ 4.3
With a Raspberry Pi,you can build an app to control your lights from your computer screen. Raspberry Pi’s general purpose input output pins emulate pressing on and off switches. In this way, you can activate your lights with your mouse,instead of physically visiting the light switch.

With a Raspberry Pi,you can make a Humidity And Temperature Sensor by connecting your Raspberry Pi to a DHT11 sensor.Even though you are not home, you can also check the exact temperature and humidity through an Internet address.However,there is nothing you can do about it if the temperature starts fluctuating.

With a Raspberry Pi,you don't need to buy a digital picture frame,you can make it with your Raspberry Pi free of charge.It can not just display pictures, but also can display weathers, movies and so on.

With a Raspberry Pi,you can build a Raspberry Pi touchscreen tablet of you own.It is very cheap and can spark a brain wave of possible other raspberry pi tablet projects

2015年1月4日星期日

Arduino and Raspberry Pi--all roads leads to Rome

Arduino and Raspberry Pi (now some of them have a Raspberry Pi touchscreen accessory in the works) are both fit for beginners when they were used as teaching tools. However, when examined their hardware and software, you will find that they’re used for different types of projects.
Yasurs™ 2.8
Actually, Arduino and Raspberry Pi are different. For starters, Raspberry Pi is a fully functional computer, while Arduino is a microcontroller, which is just a single component of a computer.

Raspberry Pi, which was created in the United Kingdom, was invented by Eben Upton and his colleagues at the University of Cambridge. It was designed to be a cheap computer for improving tinkering skills.
However, the Arduino, which was born in Italy, was named after the bar where the inventor named Massimo Banzi first come up with the idea.
There are no big differences between the Arduino and Raspberry Pi in price and size because they are all cheap and tiny (The biggest online store is sainsmart). Which make them different was the stuff inside.
The Raspberry Pi is an independent computer that can run an actual operating system in Linux. It can multitask, support two USB ports, connect wirelessly to the Internet and is 40 times faster than an Arduino when it comes to clock speed.
But it is not mean that Raspberry Pi is better than Arduino, when it comes to software applications. Arduino’s
simplicity was much better for pure hardware projects than Raspberry Pi. For example, if you wanted to write a program to blink an LED with Raspberry Pi, you’d need to install an operating system and some code libraries—and that’s just to start. While on Arduino, you can get an LED light to blink in just eight lines of code. Since Arduino isn’t designed for lots of software, you can just plug it in and get started.
In a word, the Raspberry Pi is better in software application while the Arduino makes hardware projects easier than Raspberry Pi. You can pick one of them depends on your need.