[Csharp]/*************************************** **************************** Program name: Mega_ADK ADC** Parameter count: None** Function: Send the voltage value (mv) collected by AD through the serial port)** Note: The target board is Maga adk
The simplest example:
Void setup ()
{
Serial. Begin (9600); // open the serial port and set the baud rate to 9600 bps.
}
Void loop ()
{
Int val;
Val = analogread (5 );//The sensor is connected to the analog Port 5, and the value is
Modify the SSID and passwd, the program burned to 8266, waiting for the serial port to return the successful connection message, after the successful connection can see the return of an IP address, using the browser azimuth this IP address can see
Human infrared module is very simple, is the normal three-pin (vcc,gnd,data), the data is high, low level, that is, there are only two results: High level for the active body is detected, low level for no active human detection.
It is important to
Hello everyone, I'm a small-story.Remember the previous section click the Open linkToday we talk about sensors.Today, we talk about light and ultrasound.Send a picture first:The light sense has three interfaces, namely:UCC, out, GND.The ultrasound
Reprinted please indicate the source: http://blog.csdn.net/lxk7280
First, contact the kinectorbit camera library. The download URL and brief introduction of this library are provided in this article: http://blog.csdn.net/lxk7280/article/details/3818
I wrote it here, but it hasn't been tested yet.
1. Move the two ends of the led to the center and return to the two sides.
1 // adr301.ino 2 3 byte ledPin[] = {4, 5, 6, 7, 8, 9, 10, 11, 12, 13}; 4 int ledDelay(65); 5 int direction = 1; 6 int
The board we got two days ago. The first test is 18b20, but the value cannot be read. At first, I directly connected the analog port. Later I realized that this was not a simulated sensor, but a number. It is switched to a digital port. analog
Connect as shown in the following figure:
The resistor size of the photosensitive resistor is inversely proportional to the brightness. By measuring the voltage of the resistor, you can know the resistor size of the photosensitive resistor to
In the past SCM programming process, probably most people are more familiar with the MCU WiFi module and the server to establish a socket connection. However, it may be a better option to establish an HTTP connection when we are confronted with the
voltage.One-to-do this would is to read the voltage at a analog pin, and then write it back out.For example:intPwmpin =9;//output pin supporting PWMintInpin =3;//voltage connected to analog pin 3, e.g. a potentiometerintval =0;//variable to store the Read valuefloatVolt =0;//Variable to hold the voltage readvoidSetup () {Pinmode (Pwmpin, OUTPUT);//sets the pin as output}voidLoop () {Val= Analogread (Inpin);//read the input pinVolt = (5.0* val)/1023; Val=255* (Volt/5); Analogwrite (Pwmpin, Val);
HS Series Data acquisition card can not only achieve high-speed data acquisition, but also through the (Multi channel) multi-channel measurement and analysis software, to achieve a variety of complex triggering function of the logic relationship, capture the transient high-speed signal and display the corresponding trigger curve.HS4, HS5, HS6 USB high-speed data acquisition cardVarious advanced triggering functionsIn order to control the USB series high-speed data acquisition card, the acquisiti
SummaryWhile learning about the radio, I learned that Arduino was a good choice for my next Raspberry Pi as a skill not yet mature technology. So spent 200 yuan to buy 3 pieces of Arduino Development Board (2*NANO1*UNO) and other sensors, but also see the 315M Super-regeneration module, because play radio know 315M is the car remote control, anti-theft gate, road and bridge system, such as the most commonly
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.