Arduino Board gets disconnected once Motor driver shield is connected to the board - arduino-uno

I have an arduino uno board. Everything works fine when I am trying to power it up and the code runs fine without the driver put on. I want to connect the l293d driver and my arduino gets disconnected once I connect the shield to the uno board.
I tried to give an external power supply so that power to the motor driver goes fine. And also I disconnected the power selection jump. Even then my board does not get powered up.

Related

Atemega328p built in relay switch on in digitalwrite() but without clicking sound

i already tried using this board and all works fine but suddenly one relay has a dimmer turn on led and the relay doesn't have a clicking sound when turning on. Then one after another all 7 relays has the same problems, i tried changing may atmega chip but nothing happened. I tried using other power supply to power the 7 relay but still the same. The digitalwrite(n, HIGH) output voltage of the atmega pins that are connected to the relays is just about 1.7v and not 5v but the other ouput pins that has nothing connected has 4.89v output when turning it high, would that be the problem? And how would i fix it? My code i use to troubleshoot is just high and low digitalwrite.
Schematic Diagram
atmega328p with built-in 7 relays

Connecting the STM32 blue pill to the serial monitor of the Arduino IDE (macOS)

I am using the Arduino IDE to program a STM32 blue pill using a St-link v2. To configure everithing I follwed few guides like this one and eventually I could get a successful upload and get the blinking pin c13 example running.
My problem is that enven I am able to compile and upload, the Arduino IDE does not detect any port, so I cant use the Serial Monitor as it shows
Not conected. Select a board and a port to connect automatically.
And indeed, the IDE does not recognise a port for any configuration...
but it does show the stlinkv2 in the macOS system report
Does anybody know what Im missing here? Theres maybe other alternative to see code-promts?
The ST-LINK probe you have doesn't provide a virtual serial port functionality. It's a debugger/programmer using the SWD protocol.
I'm not familiar with using STM32 with Arduino framework, but in order to use Serial class of the Arduino framework, you probably need to access one of the hardware serial ports of STM32F103.
In this case, you need an external USB - Serial converter which works with 3.3 volts logic levels and connect it to the relevant serial port pins of your Blue Pill board.
Some ST-LINK models also provide embedded USB - Serial converter interface along with the SWD functionality. But even if you have one of those, you still need to physically connect ST-LINK serial pins into the Blue Pill serial pins.

Lattice iCE40 JTAG

I am new to FPGA and I am trying to get a working JTAG setup on Lattice iCE40 FPGA.
The board I'm using is from Olimex and has iCE40-HX8K FPGA.
I'm using urjtag as PC application and tried with DirtJTAG and USB Blaster clones as programmer (flashed onto STM32 BluePill board).
Olimex board didn't have populated pull-up resistors for JTAG so I soldered them (10k for TMS, TDI and TCK).
But the end result is the same: I cannot get jtag to recognize FPGA, the error is:
jtag> cable UsbBlaster
Connected to libftdi driver.
jtag> detect
warning: TDO seems to be stuck at 1
Checked pinout of the JTAG connector and it's correct. Multimeter tests show that there is no short-circuit, no solder bridges, pullups are correct value and working and as expceted.
Tried my setup with Altera FPGA board and it's working, it will detect the FPGA.
Also, tried eBay UsbBlaster clone and it's not working on iCE40, but works for Altera FPGA.
I can flash the external flash (with other tools and programmer), but I want to be able to use JTAG so I can flash onboard SRAM instead.
Any ideas/hints what might be wrong/what to try next?
iCE40 FPGAs do not have a JTAG interface.

Arduino: w5100 Ethernet Shield DHCP fails

I am new to arduino, I have an Arduino Uno and an Ethernet shield w5100.
I am trying an example sketche on the Ethernet library from this link.
Ethernet Tutorial from Arduino website
I used the DhcpAddressPrinter example sketch. but it returns Failed to configure Ethernet using DHCP on the serial monitor.
The Arduino is connected to the router with DHCP enable. My laptop is connected to the same router and was able to acquire IP with no problems.
Have you seen this thread:
https://forum.arduino.cc/index.php?topic=351477.15
unfortunately it requires use of a soldering iron....
I have confirmed myself: a cheap 'no-name' board I had exhibited the same problem you describe above. I bought one from "JayCar" (in Australia) and the same program rang perfectly.
The resistor on the cheap "no-name" board was the wrong value. Although the cheap and JayCar board looked almost identical, the resistor soldered on the JarCar board was a different resistance to the resistor soldered on the cheap board.
This causes the cheap board to not work reliably.

Arduino, johnny-five, can it work without connected computer?

I am new guy on Arduino and johnny-five. I am not clear about the way johnny-five work. JS code will run on computer or run directly on Arduino board? Besides, can we use johnny-five for IoT? because I have not found any component to support Arduino uno connect to internet(call rest api or Azure service,..)
Thanks,
johnny-five uses Firmata. The Javascript code is running on your PC, and the Arduino is basically used as a peripheral — the Firmata firmware allows software on your PC to interact with all of the Arduino's inputs and outputs, but there isn't any real "intelligence" running on the Arduino.
Yes, it's possible to use REST APIs on an Arduino without the help of an attached computer, if the Arduino has an Ethernet Shield or some other method of connecting to the internet, but do keep in mind that the Uno only has 2kB of RAM and 32kB of ROM, so there's a limit to how complex you can make things.
You can connect arduino to a raspberry, it is not expensive.

Resources