Tamamlanmış

ESP32cam add MCP23017 GPIO expander to program and add digital read/write to code

Using this tutorial as a base for the project - [login to view URL] - update to use a MCP23017 GPIO expander (I2C device) - and add digital read/write to code.

Using the adafruit MCP23017 ("Adafruit_MCP23017.h") library (and wire.h or similar library if needed to map I2C pins).

Using this board - [login to view URL] .

Need to map I2C (SDA and SCL pins - suggested using pins 12/SDA and 14/SCL - or other suitable/available pins on the esp32cam - I should not have to do any soldering - or modifications to board!!)

Note - I do not need physical device made or anything else - just code!!

Need to use Arduino IDE - so similar language as tutorial: [login to view URL]

MUST update tutorial code to add digital read/write to MCP23017 ... see sample read/write code below.

Must be able to view webcam and do digital read/write.

*************

// Test circuit for esp32cam

// and MCP23017 GPIO Expander

// Standard SDA is 21 and SCL is 22

// Use wire.h to change SDA SCL pins...

// When Flashing - put USB SDA SCL pins for esp32 on SDA 21 and SCL 22

// When Flashing - put USB on standard flashing pins...

#include <Wire.h> // set [login to view URL](SDA, SCL)

#include "Adafruit_MCP23017.h"

Adafruit_MCP23017 mcp; // Instantiate mcp object

int dly = 500; // 1/4 second delay

void setup(){

[login to view URL](115200);

[login to view URL]("Setup starting: Ready");

[login to view URL](12, 14); // NOTE '//' out [login to view URL] in [login to view URL] library! Or will not map pins!!

[login to view URL](); // "Start" the mcp object

[login to view URL](0, OUTPUT); // relay

[login to view URL](1, INPUT); // push button - green

[login to view URL](1, HIGH); // turn on a 100K pullup internally

[login to view URL](2, INPUT); // touch sensor - filzer custom

[login to view URL](2, HIGH); // turn on a 100K pullup internally

}

void loop(){

// Digital write test - for Relay testing

[login to view URL]("Relay - Flashing GPIO: "); // Tell us what pin is flashing.

[login to view URL](0, HIGH); // Set pin HIGH (on)

delay(dly); // On for 1/4 second

[login to view URL](0, LOW); // Set pin LOW (off)

delay(dly); // Off for 1/4 Second

// digit read test - for push buttons x2

int val1 = [login to view URL](1); // Read the value of pin P1

int val2 = [login to view URL](2); // Read the value of pin P2

if (val1 == HIGH) [login to view URL]("Button: HIGH"); // If Button is Pressed

else

[login to view URL]("Button: LOW"); // When Button is Released

delay(50);

[login to view URL]("\t");

if (val2 == HIGH) [login to view URL]("Touch Sensor: HIGH"); // If Button is Pressed

else

[login to view URL]("Touch Sensor: LOW"); // When Button is Released

delay(50);

[login to view URL]("\t");

[login to view URL]();

}

Beceriler: Arduino, Mikrodenetleyici, Elektronik, Gömülü Yazılım, C Programlama

Daha fazlasını gör: java program can read emails, java mysql read write, read write file, mcp23016, esp32 mcp23017, esp32 mcp23017 library, esp32 io expander, mcp23017 pinout, mcp23016 vs mcp23017, arduino io expander, esp8266 gpio expander, struts2 read write concurrency, javascript read write txt file, read write xml file vba code, read write listen speak projects, program will read files, abap xml read write, write calculator program will read integers operation, simple program read write file, write program java read text files randomly

İşveren Hakkında:
( 1 değerlendirme ) Halifax, Canada

Proje NO: #23190812

Seçilen:

arrijal1992

Hi, Let's get started. I have used Arduino in both hardware and firmware development since 2013, and in recent years, I've been heavily using ESP32 in both hardware and firmware development. I'm familiar with their ar Daha Fazla

%selectedBids___i_period_sub_7% gün içinde 135%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(89 Değerlendirme)
6.8

Bu iş için 17 freelancer ortalamada $157 teklif veriyor

chandra2sekhar

Hello sir, Myself [login to view URL] Sekhar,[login to view URL], phd in Electronics from cdeec Innovations,India. We have 15+ years experience designing and developing electronic products. We have in house pcb fabrication facility for pr Daha Fazla

$250 USD in 15 gün içinde
(84 Değerlendirme)
7.9
MElizabethp

Hello, my name is Maria. I am an electronic engineer I would like to know more about your project. Let me know on chat.. I am available to work in this

$250 USD in 7 gün içinde
(18 Değerlendirme)
6.6
mechatronicsengr

Hi, I hope you are doing well. I have expertise in ESP32 Arduino Programming. I have worked on I/O expander. I have reviewed your requirements. I have several questions regarding project. Which is what do you want t Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(98 Değerlendirme)
7.0
MarcoCiau

Hello, I'm interested in the position of project you recently posted, particularly being from Embedded Systems. I have strong C/C++ skills and experience with ESP8266 & ESP32 microcontrollers with a good knowledge of Daha Fazla

$200 USD in 7 gün içinde
(16 Değerlendirme)
5.2
Tomorrow1201

hello. I have 10+ years experiences related to hardware and firmware development. - Electronics circuit design(schematic, PCB, simulation) - Microcontrollers(Microchip PIC, ARM, AVR, 8051) - Arduino projects(LED, vario Daha Fazla

$100 USD in 3 gün içinde
(7 Değerlendirme)
4.6
BOSIREX

Am a Mechatronic engineer with 5 year experience in microcontrollers and Arduino programming and I believe i can handle your task to perfection

$222 USD in 7 gün içinde
(26 Değerlendirme)
4.9
Gerrard97

I am an electrical engineer and interested in your project. I have read the description of your project. Kindly send me text to discuss the project in details. Thanks

$140 USD in 7 gün içinde
(14 Değerlendirme)
4.9
SMBelectronics

Hey there Hope you are doing good I read the details about your project, I am skilled electronics and communication engineer, with experience in microcontroller programming, circuit designing and etc. i worked on proje Daha Fazla

$111 USD in 4 gün içinde
(27 Değerlendirme)
5.1
edi45

Hi I am embedded system engineer with 7 years of experience. I used esp32 for main controller of several project. I used arduino to develop the firmware and i am familiar with I2C, let me know if you are interested

$100 USD in 3 gün içinde
(7 Değerlendirme)
4.0
kahan1994

HI, I am kahan. I am embedded developer and have much experienced in hardware and software side. Waiting for further discussion. Thank you.

$140 USD in 7 gün içinde
(8 Değerlendirme)
3.1
jamrelectronics

I would like to help you with your project Development of electronic projects, internet of things (IOT), prototyping, microcontroller programming (Esp8266, Esp32,stm32, pics, arduinos, avr, etc.), raspberry projects, e Daha Fazla

$115 USD in 7 gün içinde
(2 Değerlendirme)
0.6
TaiZhe0224

Hello. I am a senior Microcontroller developer and electronic engineer. After reading your description, I am very interested in your project. As you can see in my profile, I have developed the IoT and website , mobile Daha Fazla

$140 USD in 7 gün içinde
(0 Değerlendirme)
0.0
Sheryar26

Hello. I am an experienced embedded developer and I have extensively worked on esp32 projects. Kindly contact me so I can share my portfolio with you. We can decide costs and timeline via chat. I am an expert in esp32 Daha Fazla

$150 USD in 4 gün içinde
(0 Değerlendirme)
0.0
waheedhum

Hi, I have experience in arduino and esp8266 based devices. I can do your project comfortably in three working days. thanks in advance

$100 USD in 3 gün içinde
(0 Değerlendirme)
0.0
Sant26

Hi sir, I worked with both Arduino and Esp. Currently working on 1. Esp32 - mqtt and Android communication. 2. STM32 - Lora P2P communication. We will work on your project and will give you the output as you expect.

$222 USD in 21 gün içinde
(0 Değerlendirme)
0.0
$155 USD in 3 gün içinde
(0 Değerlendirme)
0.0