This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Sensörün kullanımı için öncelikle sensörün bağlantısını gerçekleştirmeniz gerekmektedir. | |
Sensörün bağlantında - 3 bacaklı DHT modülü için anlatım yapılacaktır - sensör size dönük haldeyken | |
soldaki bacak Sinyal bacağı, ortadaki bacak VCC yani güç bacağı, sağdaki bacak ise GND yani toprak | |
hattı bacağınızdır. | |
Sensörün kullanımı için sinyal bacağını PWM sinyali veren bir digital pine, VCC bacağını 3V'a, GND | |
bacağını ise NodeMCU üzerindeki herhangi bir GND pinine bağlayabilirsiniz. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <conio.h> | |
#include <time.h> | |
#include "cJSON.h" | |
// Structure Variables | |
struct record { | |
int ix; | |
int bt; | |
int v; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Hasan Eren Keskin | |
18.04.2017 | |
herenkeskin.com/arduino-nrf24l01-ile-joystick-kontrollu-araba/ | |
*/ | |
// Gerekli olan kütüphaneler | |
#include <SPI.h> | |
#include "nRF24L01.h" | |
#include "RF24.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Hasan Eren Keskin | |
18.04.2017 | |
herenkeskin.com/arduino-nrf24l01-ile-joystick-kontrollu-araba | |
*/ | |
// Gerekli olan kütüphaneler | |
#include <SPI.h> | |
#include "nRF24L01.h" | |
#include "RF24.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Hasan Eren Keskin | |
17.04.2017 | |
herenkeskin.com/arduino-nrf24l01-kablosuz-haberlesme | |
*/ | |
// Gerekli olan kütüphaneler | |
#include <SPI.h> | |
#include "nRF24L01.h" | |
#include "RF24.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Hasan Eren Keskin | |
17.04.2017 | |
herenkeskin.com/arduino-nrf24l01-kablosuz-haberlesme | |
*/ | |
// Gerekli olan kütüphaneler | |
#include <SPI.h> | |
#include "nRF24L01.h" | |
#include "RF24.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Aracın durması için kullanması gereken fonksiyon. | |
dur(); | |
// Aracın ileri yönde hareket etmesini sağlar. | |
// İçerisine hız parametresi alarak hız kontrolü yapabilirsiniz. | |
ileri( int hizDegeri ); | |
// Aracın geri yönde hareket etmesini sağlar. | |
// İçerisine hız parametresi alarak hız kontrolü yapabilirsiniz. | |
geri( int hizDegeri ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Kütüphanemizi dahil ediyoruz. | |
#include "ArabaKontrol.h" | |
// Nesnemizi Oluşturuyoruz. | |
// parametreler: (solMotorPin1, solMotorPin2, sagMotorPin1, sagMotorPin2, solMotorHiz, sagMotorHiz) | |
Araba calistir(3, 4, 7, 8, 5, 6); | |
void setup() { | |
Serial.begin(9600); |
OlderNewer