2015年2月9日星期一

Six new features of Arduino Uno R3

In Italian,the word "Uno" means one.It was named to remember the creation of Arduino 1.0.Now for most people who have interest in the Arduino Uno R3 projects,Arduino UNO R3 is the most advanced board in the Arduino world.
The Arduino Uno R3 board has six new features:

1.0 pinout: added SDA and SCL pins that are near to the AREF pin and two other new pins placed near to the RESET pin, the IOREF that allow the shields to adapt to the voltage provided from the board. In future, shields will be compatible with both the board that uses the AVR, which operates with 5V and with the Arduino Due that operates with 3.3V. The second one is a not connected pin, that is reserved for future purposes.
Stronger RESET circuit.
The Arduino Uno R2 has an ATMEGA8U2 USB microcontroller on board while the Arduino Uno R3 development board has an ATMEGA16U2 on it.It's more advanced than R2.
The arduino uno R3 board adds a diode across the USB ATMEGA reset pin pull-up resistor.

The USB Chip Position is different.On the Arduino Uno R2 board, the ATMEGA8U2 is positioned at 45 degrees. This is changed back to square position on the R3 board.
The Arduino Uno R2 has a LED and resistor connected in series on Arduino pin 13. The Arduino Uno R3 board protect this LED/resistor through a unity gain op-amp. This is the spare op-amp that was unused on previous boards.

2015年2月2日星期一

Here are how to show you Raspberry Pi on the television

Long long ago,the comeputers have no monitors to display systems and applications.So for lots of people,they prefer to using their televisions rather than paying for a extra monitor.

In recent years,however,this phonomenon has not changed so much,because the PC model of a dedicated monitor was eventually widely adopted with the development of technology.You know,we can use the mq131 arduino to probe the atmospheric environment today.So nothing is impossible.


Generally speaking,connecting to different kinds display is not a easy project.The Raspberry Pi developers must think about how their users might use the computer.Fortunately,the Raspberry Pi(even though most of them have Raspberry Pi touchscreen) supports three methods of visual output, enough to cover pretty much any domestic display unit.Here I want to teach three ways to connect you Raspberry Pi to televisions.

The first way is to use the HDMI

Equipped with a HDMI connector is the most important thing about the Raspberry Pi.That means anyone can connect the device to their living room television with an inexpensive cable.
However,it's a pity that not all televisions and monitors have HDMI connectors.So if this way doesn't work,we also have plan B:

It's a very smart choice to use a HDMI To VGA Adaptor if your display doesn't have a VGA connector.If your monitor is VGA-compatible, then all you will need is a HDMI to VGA adaptor in order to use your Raspberry Pi with that device or cable type.
If the two ways above can not solve your problem,we have the last,but not least one.The answer is RCA connector.You can connect your Raspberry Pi to any compatible TV or monitor with a standard RCA cable.

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.