
Click to zoomArduino starter kit The best option to get started in electronics hardware and software. Paired with stepped learning materials similar to a college curriculum for beginners to learn and understand the fundamentals of electronics. Start with the basics — use the integrated chip circuits provided to assemble, learn about digital logic and start designing your own custom micro-electronic solutions! Features 100% compatible with Arduino software, sensors and codes. Provides an efficient sequential way to learn electronics and programming with Arduino. The modules are pre-soldered, so they are easy to wire up. Made in USA Technical Details Parts List UNO Scout Controller Board x 1 UNO Protoshield x 1 Breadboard Power Supply Multi-Tool x 1 Low Power 1 CH Relay x 1 LCD Backpack x 1 LCD1602 Module (with pin header) x 1 Joystick Module x 1 IR Receiver x 1 Servo Motor (SG90) x 1 Stepper Motor x 1 ULN2003 Stepper Motor Driver Board x 1 DC Motor with Fan x 1 Ultrasonic Range Sensor x 1 DHT11 Temperature and Humidity Module x 1 65 Jumper Wire x 1 140 Preformed Breadboard Wire kit x 1 USB Cable x 1 M-M 10mm JST-SH 1.0mm Crossover Cable x 1 Active Buzzer x 1 Passive Buzzer x 1 Rotary Encoder x 1 Breadboard 830 Tie Points x 1 Infrared slim Remote with receiver module x 1 Infrared Laser and Receiver Module x 1 Tactile button switch (small) x 5 1 digit 7-segment Display x 1 4 digit 7-segment Display x 1 White LED x 5 Yellow LED x 5 Blue LED x 5 Green LED x 5 Red LED x 5 Photoresistor x 2 NPN Transistor (PN2222) x 2 Resistor (100, 330) x 10 ea + (1K, 10K, 100K, 1M) x 5 ea = 40 Potentiometer x 1 Capacitor 0.1 uF x 1 Capacitor 10 uF x 1 Female-to-male Dupont Wire x 10 IC 8-bit Shift Register 74HC595 x 1 IC Dual Pos-Edge-Trig J-K Flip-Flop 74HC112N x 2 IC Single Precision Timer NE555P x 1 IC Quad NAND Gate 74AHCT00N x 2 IC 7 Segment Decoder SN74LS90N x 1 IC Dual Operational Amplifier LM358P x 1 IC Quad Half-H Drivers L293D x 1
| 1 | #include <Arduino.h> |
| 2 | #include "USB_STREAM.h" |
| 3 | |
| 4 | /* Define the camera frame callback function implementation */ |
| 5 | static void onCameraFrameCallback(uvc_frame *frame, void *user_ptr) |
| 6 | { |
| 7 | Serial.printf("uvc callback! frame_format = %d, seq = %" PRIu32 ", width = %" PRIu32", height = %" PRIu32 ", length = %u, ptr = %d\n", |
| 8 | frame->frame_format, frame->sequence, frame->width, frame->height, frame->data_bytes, (int)user_ptr); |
| 9 | } |
| 10 | |
| 11 | void setup() |
| 12 | { |
| 13 | Serial.begin(115200); |
| 14 | // Instantiate an object |
| 15 | USB_STREAM *usb = new USB_STREAM(); |
| 16 | |
| 17 | // allocate memory |
| 18 | uint8_t *_xferBufferA = (uint8_t *)malloc(55 * 1024); |
| 19 | assert(_xferBufferA != NULL); |
| 20 | uint8_t *_xferBufferB = (uint8_t *)malloc(55 * 1024); |
| 21 | assert(_xferBufferB != NULL); |
| 22 | uint8_t *_frameBuffer = (uint8_t *)malloc(55 * 1024); |
| 23 | assert(_frameBuffer != NULL); |
| 24 | |
| 25 | // Config the parameter |
| 26 | usb->uvcConfiguration(FRAME_RESOLUTION_ANY, FRAME_RESOLUTION_ANY, FRAME_INTERVAL_FPS_15, 55 * 1024, _xferBufferA, _xferBufferB, 55 * 1024, _frameBuffer); |
| 27 | |
| 28 | //Register the camera frame callback function |
| 29 | usb->uvcCamRegisterCb(&onCameraFrameCallback, NULL); |
| 30 | |
| 31 | usb->start(); |
| 32 | |
| 33 | usb->connectWait(1000); |
| 34 | delay(5000); |
| 35 | |
| 36 | usb->uvcCamSuspend(NULL); |
| 37 | delay(5000); |
| 38 | |
| 39 | usb->uvcCamResume(NULL); |
| 40 | |
| 41 | /*Dont forget to free the allocated memory*/ |
| 42 | // free(_xferBufferA); |
| 43 | // free(_xferBufferB); |
| 44 | // free(_frameBuffer); |
| 45 | } |
| 46 | |
| 47 | void loop() |
| 48 | { |
| 49 | vTaskDelay(100); |
| 50 | } |