NodeMCU upload timing out when SPI device attached - spi

I am having an issue and looking for some ideas on what could be causing this problem.
I have a NodeMCU 1.0 that works fine and I am able to upload sketches using the Arduino IDE but if I have a SPI device plugged in, sketches will not upload. If I unplugged the device (I'm using pins GPIO 12-15 on the MCU) and then try to upload it works just fine.
As I've been troubleshooting this issue, I did notice that GPIO pins 13 and 15 are marked as RXD2 and TXD2 also so maybe that is related to my problem?
I would just keep working and unplug the device when I need to upload a new sketch but silly me just soldered in the SPI device and I really don't want to have to redo all my solder work.
Any guidance would be greatly appreciated.

So I got it working by grounding the select pin I was using, GPIO15. I think it may have something to do with what is mentioned here:
https://tttapa.github.io/ESP8266/Chap04%20-%20Microcontroller.html
But I don't quite understand why it worked.

Related

Having Trouble with SD DMA on STM32L452 MCU

I am having trouble making SDMMC work with DMA in 4 bit mode. I tried with FreeRTOS and without FreeRTOS didnt get anyresult. But it works perfectly without DMA.
It gives either Rx Overrun error or timeout error.
I tried it with different SD card, Different clock speeds, Different configuration no change.
I would really be grateful if someone can help me with this or have working example.
Thanks

Can you connect to WebRTC server to get the video stream from python?

I'm trying to get the video feed from usb camera attached to my Raspberry. Since it's not the dedicated one I can't just use raspivid or the raspicam that comes with uv4l to make changes to config that actually gives some effect at contrary to v4l2-ctl.
When I connect to the WebRTC server through the browser client it actually works at decent framerate. I don't yet understand how that technology works, but before jumping into it I was wondering if someone could tell me if it's possible to somehow (with client made in python or some other opencv magic) get that video feed.
Thanks in advance
I'm still interested if what I've talk about is possible, so if anyone with knowledge stumbles upon this thread, please let me know.
I've kinda solved my issue by using the mjpg-streamer experimental instead, it can be found here:
https://github.com/jacksonliam/mjpg-streamer
Now I'm getting over 8 fps, but it seems much more constant and really seems like I don't need more, compared to uv4l that gave me 3.5 fps with stutters.

I need a little suggetion in ov7670+arduino+ethernet shield

I am doing a project using Arduino Uno + Ethernet Shield + OV7670 camera(16 pins). I have solved the part with ethernet shield but I am quite confused about the camera part. How do I exactly connect the camera with the ethernet shield. I have the camera only. nothing with it. Can anyone help me to find a way out?
You will need some duponts. (or cables)DUPONTS and also breadboard BREADBOARD

spartan 6 - usb keyboard

I'm attempting to use a usb keyboard to control a game I built on a spartan 6 board. I'm struggling to understand the process to get this to work though.
I see the physical usb port on the board (I'm using a xilinx university board on campus). I understand there are AXI IP's for usb2, but they all require a license (and won't let me export the project to sdk if I use them).
I came across the open usb source at http://jorisvr.nl/usb/. I'm thinking this is exactly what I want/need, but I'm struggling to understand how to implement it.
Right now I think I should use xilinx platform studio to create a custom ip. Within that custom ip make use of the vhdl source for open usb. The process of hooking up all the different ports has me at a loss. But the thing I don't understand the most is the PHY (UTMI) block that's required for the open usb to even work. What is that? Do I need to implement it?
I'm a bit lost. Any guidance would be appreciated. The manual for open usb can be found http://jorisvr.nl/files/fpga_usb_serial_manual.pdf.

Device Enable/Disable script

I have Windows 7 64 Bit Professional Edition on a computer I built myself so there is no manufacturer to ask. I am using an on-board sound card which has 7.1 and Optical outputs. The optical output is plugged into a Denon amp which controls the speakers.
I have got a speaker system plugged into my computer through the optical port on my sound card. When I use standard windows drivers I only get stereo output so I installed the Realtek HD audio driver. This gives me surround sound successfully however it does not tie this as a standard speaker so when I plug in headphones and define them as headphones nothing happens the audio still goes to the speaker system and nothing to the headphones.
I have discovered that if I disable the Digital output device in the playback devices list the audio is automatically rerouted through the headphones. Therefore I have been trying to find a way of disabling or enabling this device. I have a programmable keyboard so I can map a program or script to a spare key therefore I am trying to write a program to check if the device is enabled or disabled then change this to whatever it is not i.e. if on turn off and if off turn on.
I attempted to locate the hardware IDs which are1. "HDAUDIO\FUNC_01&VEN_10EC&DEV_0888&SUBSYS_105BA601"2. "HDAUDIO\FUNC_01&VEN_10EC&DEV_0888&SUBSYS_105BA601&REV_1000"
I had planned to create a batch script using devcon (the command line alternative to device manager.) using the below code to disable or enable the device
devcon disable "HDAUDIO\FUNC_01&VEN_10EC&DEV_0888&SUBSYS_105BA601*"devcon enable "HDAUDIO\FUNC_01&VEN_10EC&DEV_0888&SUBSYS_105BA601*"
However devcon fails to disable these devices as the optical connection is on the sound card and I can only disable the entire sound card which would also disable the headphones.
I am a little lost as to what to do now and I really don't want my brother to need to play with disabling devices.
I am open to any suggestions. I am happy to use any language to do this. Im sure there must be a way of doing this from c but I have been unable to locate any information on this. I would appreciate any suggestions. I am quite happy to write the program myself but if someone could at least point me in the right direction to an api or something like devcon or some way in some language to do this. I currently know VB6, VB.NET, VB Script, Java and Batch Scripting and Powershell quite well and have some knowledge of C, C++ and C#.NET.
any and all help would be appreciated
Kind RegardsDexter
You can try with this :
devcon /r disable #"HDAUDIO\FUNC_01&VEN_10EC&DEV_0888&SUBSYS_105BA601*"
devcon /r enable #"HDAUDIO\FUNC_01&VEN_10EC&DEV_0888&SUBSYS_105BA601*"
Regards,
Pal