Close

3008 Results for "arduino"

  • Arduino IDE

  • To download Arduino IDE in your computer, please go to https://www.arduino.cc/en/software and download the latest version of Arduino IDE that works with your operating system. Some of the sketches (or code) that we created require additional...
  • Arduino Part

  • This one is simple. You could just upload it and it would work. However if you want you can change the speed variable with this:int vel=0;  and this wil help you to notice wich motor goes in which dimension.So upload it and if you did al the...
  • Arduino Code

  • /* code started #define ir pin = D2; #define led pin = D8; code created by technical ideas yt https://youtube.com/c/TechnicalidEas07 */ int pbuttonpin=2; int led=5; int val=0; int lighton=0; int pushed=0; void setup() { // put your setup code here, to...
  • Arduino Code

  • My basis for this machine was GRBL. The start of the code lists various parameters, such as distance per rotation, offsets, and extents. I used the BasicStepperDriver library to control the DRV8825 stepper motor drivers. The stepper drivers are set to...
  • Arduino Setup

  • In the Arduino_Sketch folder of this projects Github repo is the AGRB-Traning-Data-Capture.ino. A script to pipe acceleration and gyroscope data from an Adafruit LSM6DSOX 6 dof IMU out of the USB serial port. An ESP32 Thingplus by SparkFun is the board...
  • Arduino sketches

  • Adding a signfloat _raw; float _data;bool sign;float Volt; const int polarity = 7; void setup() {  Serial.begin(115200);  pinMode(polarity, INPUT);  pinMode(LED_BUILTIN, OUTPUT);} //TODO two's compliment in asm void loop() {   sign...
  • Arduino Sketch

  • Here is the sketch for the Arduino Nano for receiving i2c data and switching the piezo discs: //define variables #include #define tool_0 5 #define tool_1 4 #define tool_2 3 #define tool_3 2 boolean shoot_0 = false; boolean shoot_1 = false; boolean shoot_2...
  • Arduino Sketch

  • #include#include#include "math.h" // 7Seg Module connection pins (Digital Pins)#define CLK 8#define DIO 7TM1637Display display(CLK, DIO); const int R[] = {2, 3, 4, 5}; //Rellay output pinsint del[5]; //RonDellay Mapped valueint A[] = {A0, A1}; //potentiometer...
  • Arduino Setup

  • In this example, we connect Ameba to MQTT-Broker. Then send messages as publisher and receive messages from MQTT-Broker as a subscriber. Open the MQTT example “File” -> “Examples” -> “AmebaMQTTClient” -> “MQTT_Basic”...
  • Arduino Code

  • The code idea is as follows: 1 - The controller must be initially calibrated to know the empty box weight and adjust the calibration factor. The information on how to calibrate is presented at the end of this tutorial. This information will be stored...
  • Arduino Code

  • // i2c and u8g library for 1306 oled display #include #include "U8glib.h" #define R_LOW 100 // 100k or 10k resistor, 1%, smd1206, 1/10 watt #define R_HIGH 5000 // 5M or 500k resistor, 1%, smd1206, 1/10 watt #define AREF 1.1 // Aref pin voltage #define...
  • Arduino Code

  • It's in the GITHUB! The code comes down the these smaller steps: MQTT handling and Button handling. Let's do button handling first. I made a simple button object with the pin number, button press boolean, and button count. struct Button { const uint8_t...