精品国产人成在线_亚洲高清无码在线观看_国产在线视频国产永久2021_国产AV综合第一页一个的一区免费影院黑人_最近中文字幕MV高清在线视频

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評(píng)論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會(huì)員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識(shí)你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

自動(dòng)寵物喂食機(jī)的制作

454398 ? 來源:wv ? 2019-08-31 09:27 ? 次閱讀

步驟1:需要硬件

- 1x Arduino Mega 2560

- 1x步進(jìn)電機(jī)12V 28BYJ-48

- 1x步進(jìn)電機(jī)驅(qū)動(dòng)器ULN2003

- 1x超聲波傳感器HC-SR04

- 1x時(shí)鐘模塊DS1307

- 1x 0.91“IIC I2C 128x32 SSD1306 SPI OLED顯示模塊

- 20x線路M/F& 2x線M/M

- 1x面包板

- 1x電池

步驟2:設(shè)置

電源= 5V

接地= GND

OLED_MOSI = 9

OLED_CLK = 10

OLED_DC = 11

OLED_CS = 12

OLED_RESET = 13

trigPin = 2

echoPin = 3

RTC SDA = SDA 20

RTC SCL = SCL 21

motorPin1Feed = 22

motorPin2Feed = 24

motorPin3Feed = 26

motorPin4Feed = 28

第3步:3D打印。..。.. 3D打印。..。..以及更多3D打印

您可能已經(jīng)注意到STL的數(shù)量相當(dāng)多 - 附在這個(gè)Instructable上的文件,因此我們的構(gòu)造非常需要手頭有3D打印機(jī)。

雖然我們使用了所有的設(shè)計(jì)來創(chuàng)建這臺(tái)機(jī)器,但是有幾個(gè)STL文件你可以在技術(shù)上沒有生活;

“mount-base-pet-feeder.stl” - 取決于你打算如何設(shè)置包含布線的機(jī)艙,Arduino,步進(jìn)電機(jī)和步進(jìn)驅(qū)動(dòng)器

“l(fā)eft-mount-adjuster-pet-feeder.stl“ -

”right-mount-adjuster-pet-feeder.stl“ -

”離開-spacer-mount-adjuster-pet-feeder.stl“ -

”right-spacer-mount-adjuster-pet-feeder.stl“ -

”Bowl-v2.stl “ - 如果你不使用我們特制的碗,我們不會(huì)抱怨。

“M& M‘s.stl” - 這僅用于在Autodesk Fusion 360中渲染和說明我們的自動(dòng)PetFeeder。**不能用作寵物的食物。我們對(duì)不當(dāng)使用不承擔(dān)任何責(zé)任**

第4步:讓我們添加一些代碼

//Basic Embedded Programming 2. Semester Project UCL

//TinyRTC I2C module DS1307

#include ”Wire.h“

#define DS1307_I2C_ADDRESS 0x68

// Convert normal decimal numbers to binary coded decimal

byte decToBcd(byte val)

{

return( (val/10*16) + (val%10) );

}

// Convert binary coded decimal to normal decimal numbers

byte bcdToDec(byte val)

{

return( (val/16*10) + (val%16) );

}

#include

#include

#include

#include

#include

#include

RTC_DS1307 RTC;

//#include DS1307 rtc(SDA, SCL);

//declaring variables for the motor (driver) pins

int motorPin1Feed = 22;

int motorPin2Feed = 24;

int motorPin3Feed = 26;

int motorPin4Feed = 28;

//if(hour 》=

int petFeedMorning;

int petFeedAfternoon;

int petFedMorning;

int petFedAfternoon;

//Declare ultrasonic sensor pins

int trigPin = 2; // Trigger

int echoPin = 3; // Echo

long duration, cm, inches;

// Variables will change:

//Millis()

long previousMillis = 0; // will store last time LED was updated

// the follow variables is a long because the time, measured in miliseconds,

// will quickly become a bigger number than can be stored in an int.

long interval = 1000; // interval at which to blink (milliseconds)

//Disp millis()

//int period = 1000;

unsigned long time_now = 0;

#define STEPSFeed 64

#define STEPSTop 64 //Number of steps per revolution

#define STEPSBottom 64 //Number of steps per revolution

//The pin connections need to be 4 pins connected

// to Motor Driver In1, In2, In3, In4 and then the

// here in the sequence 1-3-2-4 for proper sequencing of 28BYJ48

Stepper small_stepperFeed(STEPSFeed, motorPin1Feed, motorPin3Feed, motorPin2Feed, motorPin4Feed);

Stepper small_stepperTop(STEPSTop, motorPin1Top, motorPin3Top, motorPin2Top, motorPin4Top);

int Steps2TakeFeed;

int Steps2TakeTop;

unsigned long startMillis; //some global variables available anywhere in the program

unsigned long currentMillis;

const unsigned long period = 1000; //the value is a number of milliseconds

#define SCREEN_WIDTH 128 // OLED display width, in pixels

#define SCREEN_HEIGHT 32 // OLED display height, in pixels

// Declaration for SSD1306 display connected using software SPI (default case):

#define OLED_MOSI 9

#define OLED_CLK 10

#define OLED_DC 11

#define OLED_CS 12

#define OLED_RESET 13

Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT,

OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS);

// ’Logo 2‘, 128x32px

static const unsigned char myBitmap [] PROGMEM = {

0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff,

0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff,

0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff,

0xff, 0xbc, 0x3c, 0xc6, 0x1e, 0x0e, 0x07, 0xfc, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff,

0xff, 0xbc, 0x3c, 0xc6, 0x3c, 0x0f, 0x07, 0xfc, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff,

0xff, 0xb4, 0x7c, 0xc6, 0x78, 0x1f, 0x07, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff,

0xff, 0xbe, 0x7c, 0xc6, 0xf0, 0x1b, 0x87, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff,

0xff, 0xbe, 0x7c, 0xc7, 0xe0, 0x1b, 0x87, 0xf8, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff,

0xff, 0xb6, 0x7c, 0xc7, 0xe0, 0x39, 0x87, 0xf8, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff,

0xff, 0xba, 0x5c, 0xc7, 0xf0, 0x31, 0xc7, 0xf8, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff,

0xff, 0xbb, 0xdc, 0xc7, 0x70, 0x7f, 0xc7, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff,

0xff, 0xbb, 0xdc, 0xc6, 0x38, 0x7f, 0xc7, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff,

0xff, 0xbb, 0xdc, 0xc6, 0x1c, 0x60, 0xe7, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff,

0xff, 0xbb, 0x9c, 0xc6, 0x1e, 0xe0, 0xe7, 0xfc, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff,

0xff, 0xb9, 0x9c, 0xc6, 0x0e, 0xe0, 0x67, 0xfc, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff,

0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff,

0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff,

0xff, 0x80, 0x00, 0x00, 0x00, 0x60, 0xe7, 0xfc, 0xe0, 0xc7, 0x0e, 0x73, 0x83, 0x07, 0xe1, 0xff,

0xff, 0x80, 0x00, 0x00, 0x00, 0x60, 0xc7, 0xfc, 0xf0, 0xc7, 0x0e, 0x73, 0x83, 0x0f, 0xf1, 0xff,

0xff, 0x80, 0x00, 0x00, 0x00, 0x60, 0xe7, 0x00, 0xf8, 0xc7, 0x8e, 0x73, 0xc3, 0x1c, 0x39, 0xff,

0xff, 0x80, 0x00, 0x00, 0x00, 0x60, 0xe7, 0x00, 0xf8, 0xc7, 0x8e, 0x73, 0xe3, 0x38, 0x19, 0xff,

0xff, 0x80, 0x00, 0x00, 0x00, 0x60, 0xc7, 0x00, 0xfc, 0xc6, 0xce, 0x73, 0x63, 0x38, 0x01, 0xff,

0xff, 0x80, 0x00, 0x00, 0x00, 0x7f, 0xe7, 0xfc, 0xec, 0xc6, 0xee, 0x73, 0x73, 0x38, 0x01, 0xff,

0xff, 0x80, 0x00, 0x00, 0x00, 0x7f, 0xe7, 0xfc, 0xee, 0xc6, 0x6e, 0x73, 0x33, 0x38, 0xf9, 0xff,

0xff, 0x80, 0x00, 0x00, 0x00, 0x60, 0xc7, 0x00, 0xe6, 0xc6, 0x7e, 0x73, 0x1b, 0x30, 0xf9, 0xff,

0xff, 0x80, 0x00, 0x00, 0x00, 0x60, 0xc7, 0x00, 0xe3, 0xc6, 0x3e, 0x73, 0x1b, 0x38, 0x19, 0xff,

0xff, 0x80, 0x00, 0x00, 0x00, 0x60, 0xe7, 0x00, 0xe3, 0xc6, 0x3e, 0x73, 0x0f, 0x38, 0x39, 0xff,

0xff, 0xbf, 0xff, 0xff, 0xfc, 0x60, 0xc7, 0xfc, 0xe1, 0xc6, 0x1e, 0x73, 0x0f, 0x1e, 0x79, 0xff,

0xff, 0xbf, 0xff, 0xff, 0xfc, 0x60, 0xc7, 0xfc, 0xe1, 0xc6, 0x0e, 0x73, 0x07, 0x0f, 0xf9, 0xff,

0xff, 0xbf, 0xff, 0xff, 0xfc, 0x60, 0xe7, 0xfe, 0xe0, 0xc6, 0x0e, 0x73, 0x07, 0x07, 0xc9, 0xff,

0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff,

0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff

};

void setup() {

Wire.begin();

//Serial Port begin

Serial.begin(9600);

// Using this to set the initial time:

// DS1307 seconds, minutes, hours, day, date, month, year

// setDS1307time(30,9,19,1,1,4,19);

// 1 = Sunday

//Define inputs and outputs (Ultrasonic sensor)

pinMode(trigPin, OUTPUT);

pinMode(echoPin, INPUT);

startMillis = millis(); //initial start time

// put your setup code here, to run once:

small_stepperFeed.setSpeed(200);

small_stepperTop.setSpeed(200);

// SSD1306_SWITCHCAPVCC = generate display voltage from 3.3V internally

if(!display.begin(SSD1306_SWITCHCAPVCC)) {

Serial.println(F(”SSD1306 allocation failed“));

for(;;); // Don’t proceed, loop forever

}

// Show initial display buffer contents on the screen --

// the library initializes this with an Adafruit splash screen.

display.display();

delay(500); // Pause for 2 seconds

// Clear the buffer

display.clearDisplay();

}

void loop() {

//Over 35 cm display length, time, day and date

if(cm 》= 45) {

ultrasonic();

displayTimeSerial();

displayTimeDisplay();

delay(750);

displayDayDateDisplay();

delay(750);

checkTime();

Serial.print(”Morning: “);

Serial.println(petFeedMorning);

Serial.print(”Afternoon: “);

Serial.println(petFeedAfternoon);

}

//Between 35 cm (under) and 5 cm (over) feed pet, turn motor CW

//else if(cm 《= 20 && hour 》= 7 && hour 《= 13) {

if(cm 《= 45 && cm 》8) {

ultrasonic();

stepMotorFeed();

}

//Under 5 cm display length, time, day and date

else if(cm 《= 8) {

ultrasonic();

displayTimeSerial();

displayTimeDisplay();

if(petFedMorning 《1) {

petFedMorning +1;

Serial.print(petFedMorning);

}

}

}

void setDS1307time(byte second, byte minute, byte hour, byte dayOfWeek, byte

dayOfMonth, byte month, byte year)

{

// sets time and date data to DS1307

Wire.beginTransmission(DS1307_I2C_ADDRESS);

Wire.write(0); // set next input to start at the seconds register

Wire.write(decToBcd(second)); // set seconds

Wire.write(decToBcd(minute)); // set minutes

Wire.write(decToBcd(hour)); // set hours

Wire.write(decToBcd(dayOfWeek)); // set day of week (1=Sunday, 7=Saturday)

Wire.write(decToBcd(dayOfMonth)); // set date (1 to 31)

Wire.write(decToBcd(month)); // set month

Wire.write(decToBcd(year)); // set year (0 to 99)

Wire.endTransmission();

}

void readDS1307time(byte *second,

byte *minute,

byte *hour,

byte *dayOfWeek,

byte *dayOfMonth,

byte *month,

byte *year)

{

Wire.beginTransmission(DS1307_I2C_ADDRESS);

Wire.write(0); // set DS1307 register pointer to 00h

Wire.endTransmission();

Wire.requestFrom(DS1307_I2C_ADDRESS, 7);

// request seven bytes of data from DS1307 starting from register 00h

*second = bcdToDec(Wire.read() & 0x7f);

*minute = bcdToDec(Wire.read());

*hour = bcdToDec(Wire.read() & 0x3f);

*dayOfWeek = bcdToDec(Wire.read());

*dayOfMonth = bcdToDec(Wire.read());

*month = bcdToDec(Wire.read());

*year = bcdToDec(Wire.read());

}

void checkTime() {

byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;

// retrieve data from DS1307

readDS1307time(&second, &minute, &hour, &dayOfWeek, &dayOfMonth, &month,

&year);

if(hour 》= 6 && hour 《= 11) {

petFeedMorning = 1;

}

else if (hour 》= 5 && hour 《= 13) {

petFeedMorning = 0;

}

if(hour 》= 17 && hour 《= 21) {

petFeedAfternoon = 1;

}

else if(hour 《= 16 && hour 》= 18) {

petFeedAfternoon = 0;

}

}

void displayTimeSerial()

{

byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;

// retrieve data from DS1307

readDS1307time(&second, &minute, &hour, &dayOfWeek, &dayOfMonth, &month,

&year);

//Current function prints this on the serial monitor

Serial.print(hour, DEC);

// convert the byte variable to a decimal number when displayed

Serial.print(”:“);

if (minute《10)

{

Serial.print(”0“);

}

Serial.print(minute, DEC);

Serial.print(”:“);

if (second《10)

{

Serial.print(”0“);

}

//Print seconds on serial monitor

Serial.print(second, DEC);

Serial.print(” “);

//Print numerical day of the month on serial monitor

Serial.print(dayOfMonth, DEC);

Serial.print(”/“);

//Print month on serial monitor

Serial.print(month, DEC);

Serial.print(”/“);

//Print year on serial monitor

Serial.print(year, DEC);

Serial.print(” Day of week: “);

//Determine specific day of the week

switch(dayOfWeek){

case 1:

Serial.println(”Sunday“);

break;

case 2:

Serial.println(”Monday“);

break;

case 3:

Serial.println(”Tuesday“);

break;

case 4:

Serial.println(”Wednesday“);

break;

case 5:

Serial.println(”Thursday“);

break;

case 6:

Serial.println(”Friday“);

break;

case 7:

Serial.println(”Saturday“);

break;

}

}

void displayTimeDisplay()

{

byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;

// retrieve data from DS1307

readDS1307time(&second, &minute, &hour, &dayOfWeek, &dayOfMonth, &month,

&year);

//Current function shows this on the OLED display

//Display

//TODO Millis

/*

currentMillis = millis(); //get the current ”time“ (actually the number of milliseconds since the program started)

if (currentMillis - startMillis 》= period) //test whether the period has elapsed

{

display.clearDisplay();

display.display();

display.setCursor(0,0);

display.setTextSize(2); // Draw 2X-scale text

display.setTextColor(WHITE);

display.print(cm);

display.println(” Millis“);

display.display();

digitalWrite(trigPin, LOW);

delayMicroseconds(5);

digitalWrite(trigPin, HIGH);

delayMicroseconds(10);

digitalWrite(trigPin, LOW);

startMillis = currentMillis; //IMPORTANT to save the start time of the current LED state.

}

*/

//Display distance measured from Ultrasonic sensor on OLED

display.clearDisplay();

display.display();

display.setCursor(0,0);

display.setTextSize(2); // Draw 2X-scale text

display.setTextColor(WHITE);

display.print(cm);

display.println(” cm“);

display.setTextSize(1); // Draw 2X-scale text

display.setTextColor(WHITE);

display.println();

//Display hours on OLED

display.print(hour, DEC);

//Converting the byte variable to a decimal number when displayed

display.print(”:“);

if (minute《10)

{

display.print(”0“);

}

//Display minutes on OLED

display.print(minute, DEC);

display.print(”:“);

if (second《10)

{

display.print(”0“);

}

//Display seconds on OLED

display.print(second, DEC);

display.print(” “);

//Between 35 cm (under) and 5 cm (over) feed pet, turn motor CW

//else if(cm 《= 20 && hour 》= 7 && hour 《= 13) {

if(cm 《= 35 && cm 》5) {

display.setCursor(85,25);

display.setTextSize(1); // Draw 2X-scale text

display.setTextColor(WHITE);

display.print(”FEEDING“);

}

//Under 5 cm display length, time, day and date

else if(cm 《= 5) {

display.setCursor(85,25);

display.setTextSize(1); // Draw 2X-scale text

display.setTextColor(WHITE);

display.print(”DONE“);

}

display.display();

//TODO Millis

//delay(1000);

}

void displayDayDateDisplay()

{

byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;

//Retrieving data from DS1307

readDS1307time(&second, &minute, &hour, &dayOfWeek, &dayOfMonth, &month,

&year);

//Sending it to the OLED display

//Display

//TODO Millis

//Day

display.clearDisplay();

display.setCursor(0,0);

display.setTextSize(1); // Draw 2X-scale text

display.setTextColor(WHITE);

display.println();

//Determine specific day of the week

switch(dayOfWeek){

case 1:

display.println(”Sunday“);

//display.println();

break;

case 2:

display.println(”Monday“);

break;

case 3:

display.println(”Tuesday“);

break;

case 4:

display.println(”Wednesday“);

break;

case 5:

display.println(”Thursday“);

break;

case 6:

display.println(”Friday“);

break;

case 7:

display.println(”Saturday“);

break;

}

//Date

display.setTextSize(2); // Draw 2X-scale text

display.setTextColor(WHITE);

display.print(dayOfMonth, DEC);

display.print(”/“);

display.print(month, DEC);

display.print(”/“);

display.print(year, DEC);

display.println(” “);

display.display();

//TODO Millis

//delay(500);

}

void ultrasonicTimeout() {

// The sensor is triggered by a HIGH pulse of 10 or more microseconds.

// Give a short LOW pulse beforehand to ensure a clean HIGH pulse:

/*

//Without Millis

digitalWrite(trigPin, LOW);

delayMicroseconds(5);

digitalWrite(trigPin, HIGH);

delayMicroseconds(10);

digitalWrite(trigPin, LOW);

*/

currentMillis = millis(); //get the current ”time“ (actually the number of milliseconds since the program started)

if (currentMillis - startMillis 》= period) //test whether the period has elapsed

{

digitalWrite(trigPin, LOW);

delayMicroseconds(5);

digitalWrite(trigPin, HIGH);

delayMicroseconds(10);

digitalWrite(trigPin, LOW);

startMillis = currentMillis; //IMPORTANT to save the start time of the current LED state.

}

// Read the signal from the sensor: a HIGH pulse whose

// duration is the time (in microseconds) from the sending

// of the ping to the reception of its echo off of an object.

pinMode(echoPin, INPUT);

duration = pulseIn(echoPin, HIGH);

// Convert the time into a distance

cm = (duration/2) / 29.1; // Divide by 29.1 or multiply by 0.0343

inches = (duration/2) / 74; // Divide by 74 or multiply by 0.0135

Serial.print(inches);

Serial.print(”in, “);

Serial.print(cm);

Serial.print(”cm“);

Serial.println();

//delay(200);

}

void ultrasonic() {

// The sensor is triggered by a HIGH pulse of 10 or more microseconds.

// Give a short LOW pulse beforehand to ensure a clean HIGH pulse:

/*

//Without Millis

digitalWrite(trigPin, LOW);

delayMicroseconds(5);

digitalWrite(trigPin, HIGH);

delayMicroseconds(10);

digitalWrite(trigPin, LOW);

*/

currentMillis = millis(); //get the current ”time“ (actually the number of milliseconds since the program started)

if (currentMillis - startMillis 》= period) //test whether the period has elapsed

{

digitalWrite(trigPin, LOW);

delayMicroseconds(5);

digitalWrite(trigPin, HIGH);

delayMicroseconds(10);

digitalWrite(trigPin, LOW);

startMillis = currentMillis; //IMPORTANT to save the start time of the current LED state.

}

// Read the signal from the sensor: a HIGH pulse whose

// duration is the time (in microseconds) from the sending

// of the ping to the reception of its echo off of an object.

pinMode(echoPin, INPUT);

duration = pulseIn(echoPin, HIGH);

// Convert the time into a distance

cm = (duration/2) / 29.1; // Divide by 29.1 or multiply by 0.0343

inches = (duration/2) / 74; // Divide by 74 or multiply by 0.0135

Serial.print(inches);

Serial.print(”in, “);

Serial.print(cm);

Serial.print(”cm“);

Serial.println();

}

void stepMotorFeed() {

/*

currentMillis = millis(); //get the current ”time“ (actually the number of milliseconds since the program started)

if (currentMillis - startMillis 》= period) //test whether the period has elapsed

{

//function to turn stepper motor 32 steps left

small_stepperFeed.setSpeed(300); // 200 as max speed?

//ultrasonic();

Steps2TakeFeed = -3200; // Rotate CW

//ultrasonic();

small_stepperFeed.step(Steps2TakeFeed);

startMillis = currentMillis; //IMPORTANT to save the start time of the current LED state.

}

*/

//function to turn stepper motor 32 steps left

small_stepperFeed.setSpeed(300); // 200 as max speed?

//ultrasonic();

Steps2TakeFeed = -520; // Rotate CW

//ultrasonic();

small_stepperFeed.step(Steps2TakeFeed);

}

void testdrawlogo() {

display.clearDisplay();

display.drawBitmap(

(display.width() - SCREEN_WIDTH ),

(display.height() - SCREEN_HEIGHT),

myBitmap, SCREEN_WIDTH, SCREEN_HEIGHT, 1);

display.display();

// Invert and restore display, pausing in-between

display.invertDisplay(true);

delay(1000);

display.invertDisplay(false);

delay(8000);

}

聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點(diǎn)僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場(chǎng)。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問題,請(qǐng)聯(lián)系本站處理。 舉報(bào)投訴
  • 喂食器
    +關(guān)注

    關(guān)注

    1

    文章

    23

    瀏覽量

    3054
收藏 人收藏

    評(píng)論

    相關(guān)推薦

    Wio LTE的寵物物流安全衛(wèi)士設(shè)計(jì)案例

    今天小編給大家?guī)淼氖莵碜阅鞲绲腗aker Victor Altamirano為了解決寵物寄送過程中可能遇到的安全問題,而制作的“Follow My Paws”項(xiàng)目,該項(xiàng)目可以在遠(yuǎn)程實(shí)時(shí)向用戶發(fā)送寵物航空倉的各種信息。
    的頭像 發(fā)表于 11-12 09:46 ?246次閱讀
    Wio LTE的<b class='flag-5'>寵物</b>物流安全衛(wèi)士設(shè)計(jì)案例

    寵物自動(dòng)喂食器主控芯片DSH3186

    寵物在現(xiàn)代人的生活中占有極大的比重,甚至愿意將寵物當(dāng)做孩子精細(xì)地養(yǎng)活。也正因?yàn)槿绱耍?b class='flag-5'>寵物而衍生出來的產(chǎn)業(yè)鏈涉及方方面面,不但解決了寵物主人的煩惱,也給
    的頭像 發(fā)表于 11-01 16:26 ?202次閱讀

    裝配液位傳感器的智能寵物飲水機(jī):流水不腐、喝水不累!

    配備液位傳感器的智能寵物飲水機(jī)之所以重要,是因?yàn)樗_保了水源的持續(xù)新鮮和充足。例如,通過活水循環(huán)系統(tǒng),它防止了水的停滯,符合“流水不腐”的理念,而自動(dòng)感應(yīng)出水功能減少了寵物飲水的勞累,
    的頭像 發(fā)表于 09-03 00:00 ?316次閱讀
    裝配液位傳感器的智能<b class='flag-5'>寵物</b>飲水<b class='flag-5'>機(jī)</b>:流水不腐、喝水不累!

    NVF04M錄音芯片在寵物喂食器的應(yīng)用:錄音播放功能,內(nèi)置SPI閃存

    在現(xiàn)代社會(huì)中,寵物已經(jīng)成為人們生活中的一部分,而寵物喂食器作為寵物養(yǎng)護(hù)的重要工具,也越來越受到人們的關(guān)注。為了滿足人們對(duì)寵物
    的頭像 發(fā)表于 08-30 12:05 ?312次閱讀
    NVF04M錄音芯片在<b class='flag-5'>寵物</b><b class='flag-5'>喂食</b>器的應(yīng)用:錄音播放功能,內(nèi)置SPI閃存

    寵物烘干機(jī)需不需要做CCC認(rèn)證?需要準(zhǔn)備哪些材料?

    隨著寵物經(jīng)濟(jì)的蓬勃發(fā)展,越來越多小貓小狗走進(jìn)我們的家庭,現(xiàn)如今新一代的家庭模式基本每家都會(huì)養(yǎng)寵物。在這樣的大環(huán)境下,寵物烘干機(jī)作為寵物護(hù)理的
    的頭像 發(fā)表于 06-12 17:41 ?649次閱讀
    <b class='flag-5'>寵物</b>烘干<b class='flag-5'>機(jī)</b>需不需要做CCC認(rèn)證?需要準(zhǔn)備哪些材料?

    寵物烘干機(jī)投放北美市場(chǎng)需不需要做FCC認(rèn)證?

    寵物毛發(fā)衛(wèi)生問題。這時(shí)候就衍生出來一種特殊的寵物用電器產(chǎn)品寵物烘干機(jī)寵物烘干機(jī)憑借其高效、便捷
    的頭像 發(fā)表于 06-11 16:48 ?284次閱讀
    <b class='flag-5'>寵物</b>烘干<b class='flag-5'>機(jī)</b>投放北美市場(chǎng)需不需要做FCC認(rèn)證?

    物聯(lián)網(wǎng)智能寵物管理系統(tǒng)

    是否補(bǔ)充糧食,監(jiān)測(cè)空氣質(zhì)量并自動(dòng)清新。1、智能寵物管家系統(tǒng)的工作原理STM32單片機(jī)作為控制核心,控制LED照明模塊、水位傳感器模塊、OLED顯示模塊、舵機(jī)模塊、電
    的頭像 發(fā)表于 06-01 08:10 ?1930次閱讀
    物聯(lián)網(wǎng)智能<b class='flag-5'>寵物</b>管理系統(tǒng)

    如何用Arduino制作一個(gè)簡(jiǎn)易自動(dòng)喂魚器

    如果你家里養(yǎng)有魚,并想找到一種自動(dòng)喂食的方法,這個(gè)項(xiàng)目可能會(huì)對(duì)你有所啟發(fā)。 在這個(gè)教程中,作者將展示如何制作自己的基于Arduino的自動(dòng)喂魚器,讓小魚不在餓肚子。
    發(fā)表于 03-28 11:25

    基于WTR096-28SS芯片方案的寵物喂食器實(shí)現(xiàn)智能化喂食功能

    功能,可以根據(jù)主人設(shè)定的時(shí)間和食物量,自動(dòng)寵物提供食物,確保寵物按時(shí)獲得充足的飲食。同時(shí),該喂食器還支持多餐分配,可以設(shè)定多個(gè)餐次,根據(jù)寵物
    的頭像 發(fā)表于 03-19 13:57 ?502次閱讀
    基于WTR096-28SS芯片方案的<b class='flag-5'>寵物</b><b class='flag-5'>喂食</b>器實(shí)現(xiàn)智能化<b class='flag-5'>喂食</b>功能

    求一種基于WTR096-28SS芯片方案的寵物喂食器設(shè)計(jì)方案

    本方案寵物喂食器采用了WTR096-28SS芯片方案來實(shí)現(xiàn)智能化的喂食功能。該方案結(jié)合了先進(jìn)的技術(shù)和設(shè)計(jì)理念,提供了便捷、智能和個(gè)性化的寵物喂食
    的頭像 發(fā)表于 03-12 10:38 ?467次閱讀
    求一種基于WTR096-28SS芯片方案的<b class='flag-5'>寵物</b><b class='flag-5'>喂食</b>器設(shè)計(jì)方案

    萌寵智能生活進(jìn)化史:探索背后的核心元器件

    隨著智能技術(shù)的快速發(fā)展,從自動(dòng)喂食自動(dòng)鏟屎,到通過IoT健康監(jiān)測(cè),再到通過AI情緒識(shí)別,智能化技術(shù)正在重塑養(yǎng)寵方式,讓養(yǎng)寵人搭建一個(gè)高質(zhì)量的寵物環(huán)境變得更加容易,也讓
    的頭像 發(fā)表于 02-28 09:32 ?822次閱讀

    ESP32-C3 Wifi模組在寵物飲水機(jī)上的應(yīng)用

    數(shù)據(jù)顯示,2023年,城鎮(zhèn)寵物(犬貓)消費(fèi)市場(chǎng)規(guī)模為2793億元,較2022年增長(zhǎng)3.2%。隨之而來的寵物用品銷售數(shù)據(jù)也在上升,為了提升品牌競(jìng)爭(zhēng)力,很多商家都在對(duì)產(chǎn)品升級(jí)。今天的內(nèi)容是關(guān)于寵物飲水
    的頭像 發(fā)表于 01-06 08:03 ?829次閱讀
    ESP32-C3 Wifi模組在<b class='flag-5'>寵物</b>飲水機(jī)上的應(yīng)用

    定制無線應(yīng)用:寵物電子圍欄無線報(bào)警方案

    思為無線設(shè)計(jì)的寵物電子圍欄方案通過無線模塊技術(shù)設(shè)定一個(gè)虛擬邊界,確保寵物在一個(gè)預(yù)設(shè)的安全區(qū)域內(nèi)活動(dòng),一旦寵物越界,系統(tǒng)便會(huì)自動(dòng)觸發(fā)預(yù)設(shè)的報(bào)警機(jī)制。該電子圍欄方案由一個(gè)遙控器可控制多個(gè)接
    的頭像 發(fā)表于 12-07 14:49 ?624次閱讀
    定制無線應(yīng)用:<b class='flag-5'>寵物</b>電子圍欄無線報(bào)警方案

    WT588F02A-16S錄音語音芯片在寵物喂食器中的應(yīng)用:小芯片,大功能

    在現(xiàn)代社會(huì)中,寵物已經(jīng)成為人們生活中的一部分,而寵物喂食器作為寵物養(yǎng)護(hù)的重要工具,也越來越受到人們的關(guān)注。為了滿足人們對(duì)寵物
    的頭像 發(fā)表于 11-28 09:37 ?387次閱讀

    WT588F02A-16S錄音語音芯片IC在寵物喂食器中的應(yīng)用:小芯片,大功能

    在現(xiàn)代社會(huì)中,寵物已經(jīng)成為人們生活中的一部分,而寵物喂食器作為寵物養(yǎng)護(hù)的重要工具,也越來越受到人們的關(guān)注。為了滿足人們對(duì)寵物
    的頭像 發(fā)表于 11-28 09:28 ?371次閱讀
    WT588F02A-16S錄音語音芯片IC在<b class='flag-5'>寵物</b><b class='flag-5'>喂食</b>器中的應(yīng)用:小芯片,大功能