I would like to know if there is a way to connect an esp32 cam via an esp32 to the pc to program it.
I have only found tutorials to connect it via an arduino or FTDI...
ESP32-CAM doesn't have USB->serial converter so the only way to program ESP32 for the first time is via serial. After uploading sketch via USB-TTL converter you can use OTA to update ESP32 via Wi-Fi but if you don't have FTDI converter it's useless.
Another solution is to use arduino board as USB-TTL converter because converter is already included on most of the arduino boards (nano, UNO..).
Yes, you can connect it to a PC - but, as you said, only using an Arduino or FTDI.
You can't connect it directly.
The ESP32-CAM doesn't support USB for communications. FTDI allows the PC's USB connection to communicate with the ESP32-CAM's serial port. They can't communicate without some kind of adapter - that's what FTDI or an Arduino are for.
Related
I have an RPi4 which has an onboard BT/Wifi module produced by Cypress (Cypress CYW43455).
By using BlueZ on the RPi, I can run the following commands to use both Classic and BLE functionality:
l2ping MAC //this uses classic bluetooth
hcitool lescan //this uses BLE scan
gatttool //this uses BLE also
Now I don't know how Cypress CYW43455 is interfaced with RPi4's CPU, but I want to reach the same functionality with using ESP32 with RPi4 (probably via UART).
So my question is: (how) are ESP32-based boards capable of providing the same functionality as the Cypress one?
I mean how:
are they need to interface with RPi? (via UART? via USB? other?)
is BlueZ working with ESP32 or other software is needed?
What I actually need is to
be able to "l2ping" a classic BT device
be able to read and write GATT data from/to a BLE device
be able to monitor BLE advertisement packages
The Cypress chip is connected over UART to RPi. You can connect an ESP32 in the same way (using UART) and then use hciattach to attach it to the kernel.
Note that you need to flash the ESP32 with a firmware that connects hci to the uart port.
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.
I can open my ESP32 Vroom32 device made by Espressif with a cp2101 chip on Ubuntu. I used Ubuntu to flash Micropython onto it, however when I try to connect with Putty, MPFshell or anything else on Windows 10 it will not work. I downloaded and installed the recommended drivers for it and also updated Windows which was supposed to load the driver as well. I can see the device and COM port in device manager but when I attempt to connect I get blocked. For example on MPFshell I get the message "Cannot connect to COM17"
It is a common reason for boards to show the "Cannot Connect to COM" error because of a bad USB cable.
Always check with another cable first, before getting deeper to the problem.
I am facing a weird problem...my PC has a RealTek PCIe GBE Family Controller Network card. I am trying to send data over UDP to my target embedded board using my own custom made GUI. Whenever wireshark is open in my PC, I can communicate successfully. However, if Wireshark is off, I cant communicate.
Also, on other PCs having a non-Realtek adaptor, I cant communicate with the target board even if Wireshark is open. Wireshark doesnt show any packets being sent by the GUI to the board. I have tried reinstalling both, Wireshark and Winpcap drivers but the issue still persists. I also have the latest drivers for my network card installed on my PC.
For sending data over UDP, the GUI is developed using MS Visual Studio 2008 using winsock library 2.0. I have used standard UDP protocol APIs for performing all the UDP operations.
Is the issue related to Wireshark or Network card or something else?
Please assist.
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.