Advanced Search
Search Results
102 total results found
Installing PyCharm
..., test, debug, and manage their code more efficiently and effectivel ...s various components, such as a code editor, debugger, compiler, and ...ly found in programming IDEs: Code Editor: The core component of a ...n IDE, the code editor offers features like syn...
Making a Force Sensor/ a Button with Velostat & Conductive Fabric
...stor) Signal (GND side to A0) Code This example measures the force ... GND ) Signal (one end to A0) Code This example detects if the vel ...d setup() { // put your setup code here, to run once: Serial.b ...oid loop() { // put your main code here, to run repeatedly: butt...
Touch sensor - with No Sensor!
... end with a piece of tin foil Code #include <ADCTouch.h> #define ... = 0; } } } To use this code you will need the ADCTouch Libr ...in4 1 wire to pin2 to tinfoil Code #include <CapacitiveSensor.h> ... to serial port } To use this code you will need the CapacitiveSen...
3D Geometry and Parametric Design
... a screenshot of the software: Code available here. Aims Achieve ...ls. Pre-requisites Download Google Cardboard app for iPhone or And ...ways to manually delve into the code to tweak parameters and therefo ...me. As you can see from this Google search for parametric design (J...
Using a Sparkfun Sound Detector
...Getting started Once wired, the code is that of a standard digitalRe ...ad to obtain the value. Example code reading envelope #define envelo ...ad( envelopePin ) ); } Example code reading gate #define gatePin 2 void setup() { Serial.begin( 9600 ); pi...
How to Display Animation on Waveshare E-Paper Display
...ould look like 1.bmp to #.bmp Code The below code will display the animation from frame 1 to the end frame. !/usr/bin/python # -*- coding:utf-8 -*- # Display Width: 800, Display height: 480 import sys import os libdir = os.path.join(os.path.dirname(os.p...
Web App Template for Beginners
...d. Backend is behind-the-scenes code that runs on server. It is stor ... we use Node.js. Setup 1) Get a code editor if you don’t have one ye ...n create the setup outside your code editor, however Visual Code has made it really easy to crea ...te code files from the scratch so that’...
Pi War 2024 Log
...w-current charging mode. Python Code All codes can be found on our Github pag ...e when you run the above server code. import random import socket im ... time.sleep(0.2) # wait Final code for controller - SERVER import ...d") time.sleep(0.1) Final code for car - CLIENT import random ...
Using Smartphont to Read NFC tag
...use MIFARE Classic tag or card. Code for Writing Data #include <Wire.h> #include <Adafruit_PN532.h> #define SDA_PIN A4 #define SCL_PIN A5 Adafruit_PN532 nfc(SDA_PIN, SCL_PIN); //your url const char *url = "youtube.com"; // Keep short due to 144 byte lim...
Interactive Projections
...ons, the first step would be to map the space and track anyone/anyt ...ing box, copy and paste the new code below: import cv2 import nump ...lick on it and open in using VS Code. On the right hand side of the ...e click on it. At this point VS Code will begin building your C++ so...
How to build a Simple Robot Arm with Servo Motor and Joystick
...to A0/A1 Getting started This code is getting the servo motors to ...gRead(potAngle); int rotationMapped = map(rotation, 0, 1023, 0, 180); // ...o's angle (0 to 180) int angleMapped = map(angle, 0, 1023, 0, 180); // sca ...0) rotateServo.write(rotationMapped); // rotate servo motor 1 ...
Unity for Beginners Workshop
....png format ), you can also use google images to search for images tha ...t you might want to use. Google Images You can also create a free account on textures.com. This is an excellent website for seamless image textures, e.g. wood, grass, bricks and tile...
How to export your p5.js as a video
... encounter errors with the next code block. You will see that my fil ...d to add the following lines of code in the head of our html file. Y ...ions with regard to the capture code then check here first. Return ... now add the following lines of code to the top of sketch as a globa...
Using a Monochrome 1.3" 128x64 OLED display
...A4 on Uno) Library To use this code you will need the Adafruit_SSD1 ...rary here. Getting started This code will display two bitmap images at intervals of 1 second ...= 0; const unsigned char my_bitmap [][8192] PROGMEM = { { 0x0 ...} void loop() { testdrawbitmap(); // Draw a small bitmap im...
How to control Arduino without using delay()
...torial about delay() and how to code without using it. Here we will ...from the built-in example Blink code which demonstrates controlling ...Timer in the loop() This is the code to keep the LED on for 1 second ...l pin (D3), via 220Ω resistor Code In this code we are adding one ...
How to control Raspberry Pi Pico via Wifi
...ion. How to find my IP address Google Search - "What's my IP address? ...r en1 Get started The example code will turn on/off the onboard LE .... Change ssid, password in the code Run your code in Thonny Find your IP address in the Thonny Shell, somethi...
Hello World
...file. However, since there's no code in it yet, you won't see any me ... the program finished with exit code 0, as we'd expect no errors to ...g as we haven't even writen any code yet. To create a "Hello, World ...egins and ends. Here's what the code looks like: print("Hello World"...
Using MatrixPortal M4 for animation
...(11/10/2024), all libraries and code used are compatible with this v ...ation. We will need to use a bitmap spitesheet. If you just want to ... test the code, you can download the test.bmp ...he CIRCUITPY drive. Copy the bitmap file you have created into the ...
How to use MatrixPortal M4
...(11/10/2024), all libraries and code used are compatible with this v ... where you'll place your Python code and libraries. Libraries Down ...sts.mpy adafruit_io adafruit_bitmap_font adafruit_display_text adaf ...geload adafruit_display_shapes Code - Scrolling Text # SPDX-FileCop...
Using L293D IC for motors
...match the number of pins in the code. And you will need to use PWM(~ ... & 9). Get started This example code will let you test the direction ... motorpin3,motorpin4 //This code will turn Motor A clockwise fo ...); delay(2000); //This code will turn Motor A counter-clock...