Create GATT Server with Micropython on Raspberry Pi Pico - bluetooth-lowenergy

I want to create a simple GATT Server on my Raspberry Pi Pico. The goal is to create a service that sends a simple set of data to the client. Im using the latest version of MicroPython. My Problem is, that I cant seem to figure out how I can use the MicroPython-specific bluetooth library (https://docs.micropython.org/en/latest/library/bluetooth.html), because it doesnt seem to be accesible on the Raspnerry Pi Pico. I also tried using standard python librarys like the bluez-peripheral (https://github.com/spacecheese/bluez_peripheral), but there were a lot of modules missing, that I wasnt able to install. Im open to using any other library. It would be great if someone would know how I can get these librarys running on my Pico or has any suggestions for other librarys.
Thanks in Advance

Related

Running videos on JavaFX in Raspberry Pi Zero

I am trying to run a program which shows a simple video through mediaView and then shows a QR code that is associated with a string that the program generates on javaFX in a Raspberry Pi Zero. I have tried to follow this answer Play a video using JavaFX on Raspberry Pi but I get the following problems:
I try to install Gluon following this tutorial (https://docs.gluonhq.com/embedded/#_setting_up_the_raspberry_pi) but I get the following error message when I try to run a JavaFX application WITHOUT video which simply has a button that when pressed show "Hello World":
Error occurred during initialization of VM
Server VM is only supported on ARMv7+ VFP
It seems that Gluon doesn't work with the Raspberry Pi Zero but I am not sure.I must say that in order to follow the answer mentioned above I fully reinstalled the Raspberry Pi OS so it's up to date and previously I had been able to run JavaFX applications without video but not using Gluon.
Also when trying to install the gstreamer packages they all seem to be outdated and I can't install them.
So I would be very thankful if anyone could tell me how to not only properly install Gluon on Raspberry Pi Zero but also the needed packages in order to run the video. If you see that this is impossible do you have any ideas how to replicate this program in another language in order to make it work on my Raspberry Pi Zero
From that tutorial you have linked it states it is using Java 11 which your Pi Zero (ARMv6) doesn't support.
You will need supported hardware.
EDIT : If you wish to just play videos & use QR on your Pi Zero using JavaFX you can using Java8 instead.

Arduino littleBits

I am trying to download code to my littleBits Arduino module on IDE software. I am not able to find the port whenever I am trying to download the image to the board. Is this an internal issue, or an issue with my Arduino board?
You need to check if the arduino serial driver is properly installed in device manager. If arduino serial port is available in Ports then you can download program through IDE
For visual help: https://www.youtube.com/watch?v=4HqXAmV_Ock
Make sure you have proper drivers for your board. In Arduino IDE make sure you are selecting the proper target ie, littleBits Arduino board.
If you are using the Linux system you can use dmesg to see if your system detected the device properly.
If you are using windows system use device manager to make sure your device is properly connected.
Has it ever worked? Did it work for a while then stop?
Reason I ask, I had a problem where the Little Bit suddenly stopped accepting new code. Whenever I tried to download, the Arduino IDE started reporting Unknown USB Device.
Turned out, we had bricked the device. I blogged my steps for recovery here.
Check tools>ports and see if any are available, try them all, (check
while the board is connected)
if none are available check device manager under com ports there should be your device listed if not the you need to reinstall the drivers.
also check if the board is connected correctly (i.e. the connection cord is working properly)

Arduino leonardo infinite uploading on windows 10

I'm trying to build a midi controller using an Adafruit Trellis and an arduino leonardo. When it comes to run the code, the uploading status freezes and doesn't complete. I've tried to run a hello world using both an arduinoleonardo and a uno but I still had the same problem. I've deleted the IDE, reinstalled it but nothing has changed. I think it's a driver problem but I actually don't know what to do.
Assuming your Uno is good (no defect), try to plug into a different USB port and try different COM #. Also make sure that you are selecting the correct type of Arduino.

How to update arduino wifi shield firmware?

I am having trouble following the procedure on the Arduino website to update the wifi shield firmware. Here's the link.
The outlined procedure is hard for me to follow, including what files to download from Github and where to store them on my computer.
I then am unsure of exactly what to enter in the command prompt.
Also, the error I was getting in the command prompt is when Opening Port- Fail could not open USB device
This would make me think that I need drivers or something, but nowhere I searched has said this.
I have done lots of searching and I can't find any good tutorials on how to upgrade the wifi shield firmware on a windows computer.
Any help or suggestions would be much appreciated!
Heath
I finally figured out how to upgrade the firmware and I documented the process. However, I am unsure of how to post the process that I saved as a pdf and Word document.
1)Make sure that you're connected directly to the shield alone. Do not mount it on anything.
2)Make sure the right driver is installed for the shield. For windows, the driver comes with "Flip". You can find them inside the installed directory.

Raspberry pi Arduino Libraries folder

I've got a raspberry pi and arduino connected over serial port.
Everything works, except the Arduino IDE does not have an 'import library' section for adding new libraries.
I can only import libraries that come with the IDE.
I want to add more libraries to Arduino IDE on the pi and wanted to know where the libraries folder could be found.
So far I haven't found it anywhere.
Anyone got any experience with it?
Another heads up, running raspbian wheezy.
you can add your libraries in
/usr/share/arduino/libraries/
then just include them with the include statement
#include <myAwesomeLib.h>
Hope it helps! :)

Resources