Advanced Search
Search Results
159 total results found
Variables
...d running it: print(1 + 1) As expected, Python tells us that 1 + ... result of 2. However, you may want to use a certain value more t ...tion. Imagine them as labeled boxes where you can store different ...o integers like we did before, except this time we are able to st...
An Introduction to 2D in Unity 5
...eate a New Project Open Unity 5 Create a new project: File & ...ect. You can do this one of two ways: Option 1: On the menu ba ...Main script in the light grey box in the Inspector tab, this will ...y window. In order to see the text outputted the console window n...
Using built-in example code and Reading the hookup diagram
1. Upload example code Open a built-in example, Blink, and upload the cod ... a lot of light grey coloured text, those are comments, not code. ...ill become a comment as well. Next, you will see two main parts, ...choose HIGH, turn it on. delay(1000); delay means whatever you ar...
How to use a Servo Motor
...ending on your needs. Wiring 5V Power Supply on the Left: + ...to 5V - to GND i2C to Arduino on ... the Right: GND to GND 5V to 5V SCL to SCL SDA to SDA Servo ...ove-16-Channel_PWM_Driver-PCA9685 library will be used. We have a ...es, one by one. #include "PCA9685.h" #include <Wire.h> ServoDriv...
How to use a relay module
... It is handy when the thing you want to control requires higher po ...n give. Arduino can only give max. 5V and 40 mA. In this tutorial, I ... will use a water pump and a 1-channel 5V relay module as an example, but it can be applied to ...odel, and they have their own maximum voltage and current ratings...
How to use Grove Serial Bluetooth v3.0
...obtaining a copy * of this software and associated documentation ...files (the "Software"), to deal * in the Software without restriction, includin ...nd/or sell * copies of the Software, and to permit persons to who ...m the Software is * furnished to do so, sub...
Connecting a Potentiometer
... as an input to a circuit, for example controlling how loud your ...ge between pins #1 and #3. For example if you have Ground (0V) on ... pin #1, and 5V on pin #3, you could select a ...voltage between 0V to 5V, at the half way the voltage on pin #2 would be...
How to use DFPlayer mini to play MP3
... Arduino UNO or any other with RX/TX capabilities. Know More Wiring ...ng up the sensor is quite complex, the pins are not labelled so y .... DFplayer Mini Wiring VCC to 5V (Power) RX to D2 via 1K resistor TX to D3 SPK_1 to Speaker(+) red w ...entiometer Wiring right pin to 5V (Power) middle pin to A0 (Sign...
Touch sensor - with No Sensor!
...uch Sensing: acute touch and proximity. Library ADCTouch will be ... the best accuracy without ANY external hardware. CapacitiveSensor library wil ...l be used for proximity and/or acute touching. How ...essing times #define RESOLUTION 100 #define SMOOTH 100 // determi...
How to control Arduino without using delay()
...y. Replace delay() There is an example that is modified from the ...built-in example Blink code which demonstra ...e the FireTimer with a delay of 1000 milliseconds ledTimer.begin ...(1000); } void loop() { // Check ...D ON duration) ledTimer.begin(1000); } void loop() { // Check...
How to connect a Light Dependent Resistor (LDR)
... use it in combination with a fixed value resistor, the combinati ... acts a little like a kitchen mixer tap, we can vary the temperat ...voltage between Ground (0V) and 5V (VCC). Wiring (1)leg to 5V (Power) (2)leg split to GND vi ...a 10K resistor (2)leg split to A0 ...
Raspberry Pi Image: Video Looper
...rry Pi Video Looper is a simple way to display seamless looping vi ...deo files, for example in an art exhibition. All you need is a Rasp ...ses the default video player, omxplayer, which can play most vide ... and in a video format with an extension like .avi, .mov, .mkv, ....
How to connect a Push Button with Digital Input Pull-Up resistor
... it’s “floating”). We have another tutorial showing how to use a button the normal way. Advantage of using a button t ...his way Fewer External Components No need for a ...n external resistor—the internal pul ...W when pressed (to GND) delay(100); }
Touch sensor - Using an MPR121
...ochip formerly manufactured by NXP, now under Resurgent Semicondu ...itive touch is relatively complex to understand but fundamentally ...r can detect when you are in proximity or actually touching the e ...nd the end of the wire. If you extend a wire from the electrode, ...
Adding content - 3D model from the internet
...ies where you can download pre-existing 3d models for use within ...tc. Paying for models is very expensive and we strongly recommen ...? Depending on the model you want you might need to look for it ... vegetation, or characters for example. A list of libraries and ...
Understanding Arduino software
1. Download the software Go the the official site and ...dowaload the 1.8.XX version! The latest version, 2. ...3.X, is not currently supported by ...opment, so you may encounter unexpected errors. For the time bein ... to tell Arduino IDE which one exactly we are using. The one you ...
How to make the Raspberry Pi display a web page fullscreen at power on
...i/full-screen.sh sudo chmod +x full-screen.sh full-screen.sh ... export DISPLAY=:0.0 xset s off xset -dpms xset s noblank chromium-browser ...ktop Entry] Type=Application Exec=/home/pi/full-screen.sh Hidd ...en=false X-GNOME-Autostart-enabled=true N...
Using a Monochrome 1.3" 128x64 OLED display
...p the sensor is simple: VIN to 5V GND to GND Data to SDA pin CLK ...an arduino UNO: A4(SDA), A5(SCL) // On an arduino MEGA 2560: 20(SDA), 21(SCL) // On an ar ... numImage = 2; int frameRate = 85; // 85 = 12fps, 67 = 15fps, 42 = 24fps int counter = 0;...