Skip to content

Instantly share code, notes, and snippets.

View giljr's full-sized avatar
💭
Full Stack Developer with a degree in Computer Engineering.

Gilberto Oliveira Jr giljr

💭
Full Stack Developer with a degree in Computer Engineering.
View GitHub Profile
/* Arduino Compass
*
* by Dejan Nedelkovski,
* www.HowToMechatronics.com
*
*/
#include <Wire.h> //I2C Arduino Library
#define Magnetometer_mX0 0x03
#define Magnetometer_mX1 0x04
#define Magnetometer_mZ0 0x05
//////////////////////////////////////////////////////////////////////////////////
// REMIXED BY: TECHBITAR (HAZIM BITAR)
// LICENSE: PUBLIC DOMAIN
// DATE: MAY 2, 2012
// CONTACT: techbitar at gmail dot com
int counter = 0;
void setup() {
Serial.begin(9600);
delay(50);
}
/*
Project name:
01 #kidSerie - Arduino & MIT App Instaler 2 & HC-06
(Smart Phone App!)
Flavour II -
Hex File: _01_kidSerie_sketch_02.HelloBT.ino
Revision History:
20161008:
- board found on https://www.hackster.io/ Examples
const int clockPin = 9;
const int dataPin = 8;
void setup(){
pinMode(clockPin, OUTPUT);
pinMode(dataPin, OUTPUT);
}
void loop(){
for(int i = 0; i<8; i++)
const int clockPin = 9; //Clock sequence
const int dataPin = 8; //Serial data line
const int latchPin = 10; //Latch Pin
void setup(){
pinMode(clockPin, OUTPUT);
pinMode(dataPin, OUTPUT);
pinMode(latchPin, OUTPUT);
}
@giljr
giljr / _32_arduSerie_sketch_01.No_Bluetooth.ino
Created May 14, 2017 17:57
The garages are getting more and more tight: page: https://goo.gl/pj20lS
#define trigPin 13
#define echoPin 12
#define stop_LED 11
#define go_LED 10
void setup() {
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(stop_LED, OUTPUT);
@giljr
giljr / _32_arduSerie_sketch_02.With_Bluetooth.ino
Created May 14, 2017 18:01
Garages are getting tighter and tighter: page: https://goo.gl/pj20lS
#include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3); // RX, TX
char data = 0; // Variable for storing
#define trigPin 13
#define echoPin 12
#define stop_LED 11
#define go_LED 10
+------------------------------------+----------------------------------------+---------------------------------------------------------------------------------------------------+
| Transmit | Receive | Informations |
+------------------------------------+----------------------------------------+---------------------------------------------------------------------------------------------------+
| radio.begin(); | radio.begin(); | It activates the modem. |
| radio.setRetries(15, 15); | | It is a multiple of 250 microseconds. 15 * 250 = 3750. |
| So, if the recipient does not receive data,
/*
Project name: nRF24L0 — Popular RF module using with Arduino ! #arduSerie-33
Studing nRF24L01 radios!
Flavour I - Transmiter Radio
Hex File: _33_nRF24L01_SimpleTransmitRadio.ino
Revision History:
Jun, 2017
- Medium webpage: https://goo.gl/H8i0rT
Description:
This is a simple code to configure a radio transmitter and other receiver
/*
Project name: nRF24L0 — Popular RF module using with Arduino ! #arduSerie-33
Studing nRF24L01 radios!
Flavour II - Receiver Radio
Hex File: _33_nRF24L01_SimpleReceiveRadio.ino
Revision History:
Jun, 2017
- Medium webpage:
Description:
This is a simple code to configure a radio transmitter and other receiver