4

To process incoming images, voice commands, produce sounds, and also do WiFi is almost certainly beyond the capabilities of any micro computer, like the Arduino (maybe some of the more recent models might). I strongly doubt that the Mega 2560 would. It doesn't have a heap of RAM for one thing (it has 8k of RAM). Look at the sizes of images produced by ...


4

The limiting factor is the bus capacitance. This is the limit of the total capacitance of the bus from all devices connected to it plus the capacitance of the wires used. It is also affected by the value of the pullup resistors. The limit, according to the specifications, is 400pF. An Arduino has an input capacitance of 10pF. So ignoring the wires that's ...


3

Your main bottleneck here is the camera. If you want to do real time video, I would suggest getting a Raspberry Pi or the equivalent then using it as a master over something easier to code like an arduino. The camera and wifi would be handled by the raspberry pi ( using Robot Operating software ) and the low level stuff like motor would be handled by the ...


3

PB7 is pin 13. That's the traditional LED pin. The bootloader blinks that LED to indicate it's active. If you want other behaviour then you will have to compile your own version of the bootloader that doesn't blink the LED.


3

Your current signal will also show PWM, so you will need to filter that before measuring. It would be much simpler if you could rearrange your circuit to put the sense resistor on the ground side of the MOSFET, since then you can use a simple RC filter and a single A0 measurement. Also, you wouldn't have to worry about the no-load voltage from the solar ...


2

Sorry I'm a bit late (5 years late) but hopefully this can help someone who's just now trying to do this! There's an old obscure Sunfounder library, "rfid1.h" that lets you declare every pin. Like this: rfid.begin(IRQ,SCK,MOSI,MISO,NSS,RST); It's a bit hard to find the library online these days, but at the bottom of this page (http://wiki....


2

After pressing sw1, the first if works. After releasing sw1 (it's a pushbutton), the line while (digitalRead(sw1) == HIGH); will make the code just sit there forever without continuing with the rest of the code until you press sw1 again, which will be caught by the first if unless you release 'sw1' inhumanly fast. So, once you have pressed and released sw1, ...


2

No. Not even remotely. Android runs on a powerful computer not a tiny embedded microcontroller.


1

Well I don't know exactly why this work, but base on this question this. To solve this I should add 'inline' keyword in every method definition on the MPU6050_6Axis_MotionApps20.h Like this: inline uint8_t MPU6050::dmpInitialize() { // reset device DEBUG_PRINTLN(F("\n\nResetting MPU6050...")); reset(); delay(30); // wait after reset ...


1

The number is as many as you want. There are switches that allow you to select different busses and each buss supports its full complement. From my point you are trying to use a solution before you have defined the problem fully. I have a feeling they will not be within a few inches of each other so consider an alternative designed for this type of use. CAN,...


1

An NPN bipolar transistor requires a current to flow from base to the emitter which is then multiplied by the beta of the transistor controlling the maximum current which flows from the collector to the emitter. A 2n2222 beta is about 100. Let us calculate the amount of current which will be allowed to flow from the collector to the emitter of the 2n2222 ...


1

You include the Tone library and you use the tone() function from core. They are in conflict. Use tone1.tone() or remove the Tone library and use the tone() function.


1

Start with the BlinkWithoutDelay example code and make modifications to suit your needs. This is the original code. /* Blink without Delay Turns on and off a light emitting diode (LED) connected to a digital pin, without using the delay() function. This means that other code can run at the same time without being interrupted by the LED code. ...


1

I don't know why the three of them don't work together. I already answered that question in my answer to your previous question. why I'm using this calculation in my code and why if I removed it the lidar will not give me any measurement? That code part is reading the data from the first SoftwareSerial interface. If you don't read this data (by removing ...


1

Besides connecting all the grounds, a "good idea" whenever working with solenoids or magnetic (as opposed to solid state) relays is to add protection against inductive kickback, which can create really high voltages (hundreds of volts) when the current through an inductor changes suddenly. (The voltage is the product of the inductance and the rate-...


1

Figuring out your current needs is simply a matter of adding everything up. If you have 5 2 amp motors, you'll need 5 x 2, or 10 amps just to drive the motors. You should probably have at least 20% extra capacity, so I'd suggest having a 12V power supply that can put out at least 12A. 15A would be better. The stiffer your power supply the less it will "...


1

This is something that is far far easier to measure than to try and calculate. Here's an Arduino Uno R2 with a simple sketch that just turns on D2. Green is the power (7V to the barrel jack) and yellow is D2. As you can see it takes 1.544 seconds (according to the resolution of my oscilloscope which, over those time scales, isn't that great) before D2 is ...


1

The best way would be to check the datasheet: https://ww1.microchip.com/downloads/en/devicedoc/atmel-2549-8-bit-avr-microcontroller-atmega640-1280-1281-2560-2561_datasheet.pdf and set an interrupt on one of the timer. Example code of this application can be found on this stack here : How to make 1 second delay more accurate? Another way of doing it if you ...


1

If your project is more for fun and not mission-critical, and you have an older smartphone you're no longer using, you can repurpose it. For the motors (BLDC, DC, servos) and proximity sensors you can use any arduino (e.g. Nano) through either its USB port (if it has OTG) or bluetooth (e.g. Pro Micro). Your Arduino code in this case would be very simple, ...


1

I have a 2.4A USB power supply. Is that enough? Not by a long way, no. NEMA 17 motors are typically 12V, not 5V, so a USB power supply is not even close. You will need a decent 12V power supply with a lot of current. My 3D printer has 3 NEMA 17 motors and uses a 200W 12V power supply. Most of that goes to the motors with only a comparatively small ...


1

Try lowering the rpm in the code. I had a similar issue with anything over about 18rpm using certain libraries with certain stepper motors.


1

https://www.forward.com.au/pfod/CheapWifiShield/index.html provides a very inexpensive wifi addon for Arduino The WiFi Shield needs just two parts, 4 bits of wire and some soldering equipment. Parts List:- Adafruit HUZZAH ESP8266 Breakout US$9.95 + shipping Uno Protoshield US$1.88 + shipping Total US$11.83 (as of June 2015) For an even cheaper version ~US7 ...


Only top voted, non community-wiki answers of a minimum length are eligible