#qtpy
Explore tagged Tumblr posts
Text
Rooooound display prototype testing 🌀✨
Okay, we've got our 1.3" round TFT prototype ready for testing - and here's a cute GIF of a dial turning back and forth. It's a great way to test the display, backlight, and SD card interface. We're using a QT Py ESP32 since we need quite a bit of oomph to decode GIFs and display them in real-time. With EYESPI, no wiring is required! This is good to go - it's time to book the PCB panel!
#rounddisplay#tftprototype#gadgettesting#techinnovation#electronicsengineering#qtpy#esp32#realtimegraphics#gifdisplay#techgeek#displaytesting#sdcardinterface#eyesspi#pcbdesign#hardwaredev#techdiy#makersgonnamake#hardwarehack#electronicsprototyping#techprojects#displaytechnology#hardwaredesign#pcbprototype#techtrends#diytech#engineeringlife#electronicscommunity#gadgetlove#displaytech
82 notes
·
View notes
Text
A very simple tutorial; like 5 minutes of soldering. The default tutorial sends the data to Adafruit's logging platform, but I'm sure it's possible to set it up to log AQI readings to your own Grafana server or something like that.
Air quality!
4 notes
·
View notes
Text
RDS Data Extraction with RFtap and Wireshark
RDS (Radio Data System) is a communication protocol standard used for embedding small amounts of digital information in traditional FM radio broadcasts. It enables radio stations to transmit data such as station identification, program information, and traffic updates.
To capture and decode RDS data, one method involves using a Software Defined Radio (SDR) along with GNU Radio and RFtap. GNU Radio provides a framework for creating software radios, while RFtap acts as a bridge between GNU Radio and conventional network monitoring and packet analysis tools like Wireshark.
Unfortunately, as of the time of writing, RFtap is no longer being maintained and does not work with the latest version of GNU Radio (version 3.10.10). This post offers guidelines for rebuild and using RFtap with the new GNU Radio release.
This post assumes that the reader has access to DVB-T dongles based on the Realtek RTL2832U and a PC running Ubuntu or Debian Linux. For this, I used an RTL dongle with Rafael Micro R820T tuner and Ubuntu 24.04 LTS release.
As the first step install the following GNU Radio build dependencies into the OS:
sudo apt-get install cmake libboost-all-dev \ liblog4cpp5-dev qtcreator qtbase5-dev \ qt5-qmake python3-cheetah python3-numpy \ python3-pygtk python3-gi python3-gi-cairo \ gir1.2-gtk-4.0
sudo apt install git g++ libgmp-dev swig \ python3-mako python3-sphinx python3-lxml \ doxygen libfftw3-dev libsdl1.2-dev \ libgsl-dev libqwt-qt5-dev libqt5opengl5-dev \ python3-pyqt5 liblog4cpp5-dev libzmq3-dev \ python3-yaml python3-click \ python3-click-plugins python3-zmq python3-scipy \ libcodec2-dev libgsm1-dev libusb-1.0-0 \ libusb-1.0-0-dev libudev-dev \ python3-setuptools
sudo apt install pybind11-dev python3-matplotlib \ libsndfile1-dev libsoapysdr-dev soapysdr-tools \ python3-pygccxml python3-pyqtgraph
sudo apt install libiio-dev libad9361-dev \ libspdlog-dev python3-packaging python3-jsonschema \ python3-qtpy
sudo apt remove swig
Next, clone and build Volk (Vector-Optimized Library of Kernels)
mkdir ~/rf cd rf git clone --recursive https://github.com/gnuradio/volk.git cd volk mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 ../ make sudo make install sudo ldconfig
After installing the Volk library, we can proceed to build GNU Radio.
cd ~/rf wget https://github.com/gnuradio/gnuradio/archive/refs/tags/v3.10.10.0.tar.gz tar -xvf ./v3.10.10.0.tar.gz cd gnuradio-3.10.10.0 mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 ../ make -j8 make test sudo make install sudo ldconfig
Now GNU Radio is installed with all necessary components. To enable RTL SDR support, we must build and install Osmocom RTL SDR libraries and SDR components.
cd ~/rf git clone https://gitea.osmocom.org/sdr/rtl-sdr.git cd rtl-sdr mkdir build cd build cmake ../ -DINSTALL_UDEV_RULES=ON make sudo make install sudo ldconfig
cd ~/rf git clone https://gitea.osmocom.org/sdr/gr-osmosdr cd gr-osmosdr mkdir build cd build cmake ../ make sudo make install sudo ldconfig
Before plugging in the RTL-SDR dongle, we need to prevent the kernel modules for the RTL-SDR USB device from being loaded into the kernel and taking ownership of the device. To do this, simply navigate to the /etc/modprobe.d directory and create a file called rtl-sdr-blacklist.conf with the following content:
# This system has librtlsdr0 installed in order to # use digital video broadcast receivers as generic # software defined radios. blacklist dvb_usb_rtl28xxu blacklist e4000 blacklist rtl2832 blacklist rtl2830 blacklist rtl2838
Next, you should clone and build the FM RDS/TMC transceiver module for GNU Radio.
cd ~/rf wget https://github.com/bastibl/gr-rds/archive/refs/tags/v3.10.tar.gz tar -xvf ./gr-rds\ -v3.10.tar.gz cd gr-rds-3.10 mkdir build cd build cmake .. make sudo make install sudo ldconfig
For the next steps, we need to have Wireshark and RFTap. Wireshark can be installed using a package manager.
sudo apt-get install wireshark
To run Wireshark without requiring root user permissions, use the following set of commands:
sudo dpkg-reconfigure wireshark-common sudo usermod -a -G wireshark $USER newgrp wireshark
A message may be prompted in the first step above and proceed by selecting the "Yes" option.
Now restart the OS and continue with the RFTap installation.
The official RFTap repository is no longer being maintained and is not compatible with newer versions of GNU Radio. For this step, please use the RFTap fork available in my GitHub repository. This version has been successfully tested with GNU Radio 3.10.10 and Wireshark 4.2.2.
cd ~/rf git clone https://github.com/dilshan/gr-rftap.git cd gr-rftap mkdir build cd build cmake .. make sudo make install sudo ldconfig
Now get the modifier version of rds_rx_rftap.grc from the above repository.
The Wireshark Dissector file for RDS data is also available in the repository. Copy it to the ~/.config/wireshark/plugins directory. Create the directories if they do not exist.
Launch Wireshark and monitor the loopback (lo) adapter. Start GNU Radio and execute the rds_rx.grc file, which was downloaded in the above step.
youtube
If all the steps are performed correctly, the RDS data should appear in the packet list pane as UDP messages. The dissected messages can be observed through the packet bytes pane.
0 notes
Photo
Making an oil pressure gauge with an Adafruit QT Py #AdafruitForums #QTPy « Adafruit Industries – Makers, hackers, artists, designers and engineers!
0 notes
Text
Programming Projects: March 2021
Programming Projects: March 2021 #Python #MicrosoftMadkeCode #CircuitPython #QTPy #Adafruit #FastAPI
I started off the month thinking it was going to be Python heavy and ended up doing a lot more micro-controller programming. To be fair, I was mostly programming in CircuitPython, but it definitely came out of nowhere. Python Civilization VI Webhook in FastAPI Last month I created a webhook program in Flask to generate notifications when it was someone’s turn in our multiplayer Civilization…

View On WordPress
#BBC:Micro#C#CircuitPython#Civilization VI#Django#electronics#FastAPI#Microsoft MakeCode#python#robotics
2 notes
·
View notes
Text
Spyder python download

#SPYDER PYTHON DOWNLOAD INSTALL#
However, now I am confused where is the application? How can I use spyder now?Īs I changed into to folder bin suddenly the terminal responded to spyder3īut the result was Nathanaels-iMac:bin nathanaelskrepek$ spyder3įile "/Library/Frameworks/amework/Versions/3.6/lib/python3.6/site-packages/qtpy/_init_.py", line 148, in įrom PySide import _version_ as PYSIDE_VERSION # analysis:ignore Why is this nowhere mentioned?! Anyway this worked - at least it didn't trigger an error. I realized that I have to use pip3 because I have two python versions.
#SPYDER PYTHON DOWNLOAD INSTALL#
Then I followed the introduction of this site which basically says to type pip install -U spyder which led to an error at the end. So I started by installing pip by typing sudo easy_install pip in the command line. On mac python 2.7 is preinstalled and I already installed python3 which was pretty easy. Since I couldn't find any easy installation just by clicking some where. It seems I don't understand a very basic concept of this installing and can't find an answer.Īs the title says I want to install spyder for python3 on my mac.

0 notes
Text
Gaming tag
Tagged by qtpy @samfishers
Tagging: imma friendless sadboy
favorite game from the last 5 years? ‒ Borderlands, Skyrim, Grim Dawn on top spot
most nostalgic game? ‒ Warcraft 3
game that deserves a sequel? ‒ Warcraft 3 and Far Cry Blood Dragon
game that deserves a remaster? ‒ Warcraft 1 and 2
favorite game series? ‒ Borderlands
favorite genre? ‒ ARPG
least favorite genre? ‒ dunno
favorite song from a game? ‒ Power Glove soundtrack for Far Cry Blood Dragon
favorite character from a game? ‒ Sgt. Rex Colt, Cl4p Tr4p, Deadpool, Grom Hellscream
favorite ship from a game? ‒ Mordecai and Bloodwing :’(
favorite voice actor from a game? ‒ ...is this a thing?
favorite cutscene? ‒ Grom vs Mannoroth
favorite boss? ‒ Handsome Jack
first console? ‒ Polystation
current console or consoles? ‒ PC
console you want? ‒ PC is life
place from a game that you’d like to visit? ‒ Pandora, Tamriel and Kyrat
place from a game that you’d like to live in? ‒ Tamriel
ridiculous crossover that would never happen but would be super fun? ‒ Skyrim x Warcraft
book that would make a good game? ‒ Divine Comedy by Dante Alighieri or The Odyssey by Homer
show/movie that would make a good game? ‒ Altered Carbon
games you want to play? ‒ Cyberpunk 2077 and TES VI
have you gotten 100% completion in a game? ‒ yup
have you cried over a game? ‒ when i accidentaly deleted my Skyrim save file i cried for 2 days non-stop and had suicidal thoughts (does that count?)
what power-up or ability would you want in real life? ‒ Superspeed, always
1 note
·
View note
Link
It's cute, it runs python, it's QT Py ... adafruit.com/qtpy pic.twitter.com/FYbRE4c2Yw V...
0 notes
Text







The Game of Life Roulette Controller for PlayStation (2003) 🎮🔄🔧
The Takara Roulette Controller is a PlayStation peripheral, released in Japan in 2003. Shaped like a roulette wheel, it was bundled with the game 'Game of Life The Money Battle'. It features a spin-able central wheel for random number generation and multiple buttons for betting on specific numbers or ranges.
And! We have a guide on how to use it with USB!
youtube
PlayStation Spinner Controller - Make a rapid button clicker with the Roulette controller and CircuitPython
Harness the power of a very specific and weird PlayStation controller! The Takara Game of Life controller is just like a normal PlayStation (PSX) controller, with a twist -- literally -- it has a colorful spinner on it that you can twirl like a roulette wheel to spam the circle button!
While this was originally designed for use with a specific Game of Life game on PSX, you can bring it into the modern era an turn it into a USB controller that can be used for emulation, game control, and perhaps most importantly -- as a very fast mouse clicker!
Using a QT Py RP2040 running CircuitPython and the ps2controller library by Tod Kurt, this novelty controller can be used on your computer or mobile device, sending USB HID keyboard and mouse commands, or, alternatively as a USB MIDI controller.
#adafruit#retro#playstation#usb#gameoflife#controllermod#circuitpython#qtpy#retrogaming#diy#gaminghack#psx#hardwaremod#electronicsengineering#Youtube
66 notes
·
View notes
Text
riggingdojo
RT @DhruvGovil: #qtpy now supports #PySide2. One of my first OSS contributions. #Qt #Python https://t.co/qGoTZhoLhT
0 notes
Photo

New Products 1/31/24 Feat. #Adafruit #DCPower BFF Add-On for QTPy « Adafruit Industries – Makers, hackers, artists, designers and engineers!
0 notes
Text
Version 373 (Qt)
youtube
windows
zip
exe
linux
tar.gz
source
tar.gz
The Qt update is ready for Windows and Linux!
This week's release is for all users, but please bear in mind it has some small layout and positioning bugs, such as subscription popups sizing a little strangely. If you would rather wait a week or two for these last issues to be cleared (and any others that pop up as more people play with this), that is totally fine.
Qt background
Since hydrus began as an application, it has used wxWidgets to draw all the windows and buttons on screen. wx has served us well, but hydrus has grown to be a complicated program with hundreds of different custom things going on, and it was starting to show. Lots of windows were flickery, modern tech like 4k screens were not excellently supported, and operating systems and window managers were unstable. If I could have moved to a more flexible and more frequently updated UI library by snapping my fingers, I would have, but the total UI code is almost three megabytes, far too much to reasonably convert as I kept at my normal weekly schedule.
A user contacted me I think about a year ago talking about Qt and possibly making some scripts to automatically convert hydrus's wx code to Qt. I said it sounded like a good idea, and he worked in the background trying to figure it out and add manual tweaks. He was very successful, ultimately getting an essentially functional build going a couple of months ago. He passed the code to me four weeks ago, and I have since crash-learned Qt and fixed the great majority of the bugs that slipped through the automatic conversion process.
I am extremely grateful for this user's work--this would not have happened otherwise--and I am very happy with the result. Qt is a nicer library than wx for our purposes, runs faster, has much less flicker and related jank, and provides many new options for future extensions and customisation. I also enjoy working with Qt--the library is good.
hydrus Qt
There are no critical differences between the wx and Qt builds. Every label and button is where it was before. Fonts and colours and sizes and margins are all slightly different, but nothing has been taken away. Also, there do not seem to be any dll-style conflicts with a previous installation, so you should just be able to install or extract as you would any other week without any problems.
One particularly nice thing is that Qt is overall faster. Video animations and thumbnail fading should be a little smoother. Another is that compatibility with different Linux distros is much better, so Linux users who have had crashes or drawing problems should now have an easier time.
Also, tag autocomplete dropdown result lists can now float for non-Windows. They can also float on dialogs like manage tags. Options on whether they should float or embed are now under options->gui.
Hydrus is a big program, however. I have done plenty of testing and fixed hundreds of things, and advanced users have tried out some early builds and helped me out more, but there are surely some odd layout and display bugs we have not found. There are also some that we found but I could not fix in time--for instance, sometimes the new page tab drag-and-drop does not do its new 'live' page navigation correctly, discord drag-and-drop file export is unreliable again, the duplicate filter's right-hand hover window sometimes positions incorrectly, and subscription popups will change size too often due to some unusual text handling as they work through their network jobs. If you encounter your own issues, I am interested in all feedback. For now, issues that affect usability are of higher priority than a couple of pixels out of place, but I am open to all reports.
If you use IME text input, let me know how it works for you now!
I regret that I was unable to get a release-ready macOS build out for today. macOS has some important UI differences to Windows and Linux, and there are still some significant things--like maximise/borderless fullscreen support for the media viewer--that were causing stability issues. I will keep at it next week.
Users who run from source will need qtpy and either PySide2 (default) or PyQt5. Check https://hydrusnetwork.github.io/hydrus/help/running_from_source.html for more information.
misc
I also did some normal work, mostly quality-of-life ui stuff:
The 'archive/delete' menu option now shows up when you have nothing selected, and will do everything.
Some of the system predicate edit panels now show quick-select buttons--for instance, if you hit 'system:duration', you'll now have two extra buttons for 'has duration' and 'no duration'.
I fixed an important CPU inefficiency in the new files maintenance manager that was affecting some users with large file maintenance queues and large gui sessions. It was causing juddery UI, which should be completely fixed now.
Clients with large sessions that include 'collected' media thumbnails with hundreds or thousands of files should experience less UI judder as they browse the files within those collections.
full list
qt:
hydrus now uses Qt for its client's user interface, migrating from wx. this is thanks to a huge effort by a user, who delivered converted code for hydrus dev to finish off
a number of hacks and patches remain to compensate for old systems, which hydrus dev will slowly clean up in normal work. ui bug and layout issue reports would be greatly appreciated
shortcut storage had to be converted from fixed wx enums to an independant system. there is a small chance that one of your shortcuts, particularly if it is on the numpad, may have been converted wrong (unusual Enter/Return buttons may be hit here). if one is not working, please check what hydrus thinks it is and try re-entering it
added tentative support for 'Mode_switch' keyboard modifier, for X11 users (and perhaps some users' AltGr?)
autocomplete results can now float in a popup window in dialogs like manage tags! they'll still embed by default, but there are now separate float/embed options for 'main gui' and 'other frame' a/cs
autocomplete results can now float in linux and macOS ok!
page drag and drop now navigates as you drag, so dropping into a page of pages works by you hovering over it and then dropping in the tabbar below, inserting exactly where you want the page to be
a couple of text inputs in the program--the watcher and gallery search pages' text inputs, particularly--now use nicer 'placeholder' text, which isn't real and only shows as grey text when the input is empty
for now, moved to icons for thumbnail 'has audio/duration' indicators, rather than the custom labels
to run the hydrus client from source, qtpy is now needed. either pyside2 (default) or qtpy5 is needed. QtCharts is optional. wx and matplotlib are no longer needed
.
misc:
'archive/delete filter' now appears even when no file is focused. it also appears when no files are selected--and will apply to everything
the system predicate edit panels now support static buttons for easy one-click select for common predicates. duration, has audio, limit, and num tags now have these
system:duration and system:num tags now render a special label if they are >0 or =0
system:untagged is now removed from the normal list
fixed a critical cpu inefficiency in the file maintenance manager's new always-on maintenance, which was lagging several users' browsing sessions while it was working
fixed ctrl+mousewheel tag autocomplete results navigation to skip over multirow parent results
fixed an issue where resetting to default bandwidth rules for a network context would not update the ui properly
fixed a bug when adding a parent/sibling from autocomplete results list
the serialised png export folder now catches when a manually inputted export path's directory does not exist
reduced metadata update lag of pages with very large media collection groups
the inaccurate 'add tags based on filename' button is now called 'import with tags'
fixed a database UNIQUE issue when two duplicate gui session save calls happen within one second
the server's lock_off command now works with the Hydrus-Key header auth (rather than hanging indefinitely wew)
the server now caches hashed access keys in the session manager, in memory, to avoid a db hit on access-key based reauthentication, and in instances where this authentication requires a db hit, now cleanly provides an appropriate 'serverbusy' error
improved some media object memory management and speedy cleanup
improved boot fail graceful exit
removed a bunch of defunct flash (swf) hacks from media viewer code
bunch of misc non-qt cleanup as I went through the code
fixed a bug with rendering network credentials for human display
cleared out the ancient tag archive sync advanced help and added a stub for the new tag migration window
various help updates around wx->Qt
next week
This took a lot of work, more than I thought. I am really pleased, but also exhausted. I am going to take an easy week of fixing little layout issues and try to add system tray minimisation and css theming (which will eventually lead to 'proper' nightmode or any other theme users can work out). I'll also see if I can get the macOS release working better.
Once the Qt-issues rush has eased, I will return to the big tag work and Mr. Bones' normal schedule. I'll also test out adding an mpv video player into the media viewer, so we finally have proper video (and audio!) support.
In the longer term, I have probably a hundred Qt-cleanup jobs to catch up on. There are many behind-the-scenes hacks to get wx-specific code to talk to Qt, so I need to clean up that old bad code into something neater. I will spread this work out into my normal schedule.
0 notes
Link
It's cute, it runs python, it's QT Py ... adafruit.com/qtpy pic.twitter.com/FYbRE4c2Yw V...
0 notes
Text
Coming soon - BNO055 + BMP280 QT Py is 11-DoFs of motion sensing goodness
The opposite of a parts shortage is a parts surplus, aaaand we have a couple extra BNO055's (https://www.adafruit.com/product/2472) in stock, so much like a delicious leftovers-driven-casserole we've spun up a little QT Py BFF (https://www.adafruit.com/search?q=bff) board that will give any Xiao or QT Py board 9-DoF sensing with the quaternion calculation generated without any on-chip computation. In case folks want to do altitude detection, we also stuck a BMP280 barometric pressure (https://www.adafruit.com/product/2651) and temperature sensor on there, so it's a nice 11-DoF! this could work nicely for a little robot or drone.
2 notes
·
View notes