There are many fun peripherials that you can connect to a RPi but PC users are not left out either
attiny85 has SPI and i2c interface so could be possibly used as USB<->i2c or USB<->SPI bridge. Unfortunately, the USB support needs some non-standard timings so there is quite a bit of integration and debugging needed.
- and there is a patch floating around to make devicetree available on non-devicetree platforms so with this you could enjoy all the awesomeness of devicetree -configured peripherials on your PC
i2c OLED displays work nicely with an Arduino but for some reason fail with an A10S Olinuxino so there is some room for debugging the sunxi i2c drivers.
SPI TFT displays work quite nicely with any board including Arduino, ESP boards and ARM computers. The specific issue with ARM mainline is devicetree or similar integration to support the display.
RC522 is an inexpensive RFID reader which can be obtained for around $2 from Chinese vendors. The problem is the device is not very easy to interface with. I can run the Arduino sketches that use the reader on a Linux box but have not seen a decent driver for it so far
place an accelerometer on a desktop screen and have the screen orientation updated automagically in system when it is rotated.
...
Tried to build ATtiny85 USB<->I2C bridge using a Digispark clone. The Arduino IDE packaging is not in very good shape on SUSE so started by making it possible to install Arduino on any platform by packaging the bundled binaries. The changes are in the process of getting submitted in CrossToolchain:avr and other repositories.
After some debugging I finally found that there is a board definition which defines several arguments including expected CPU clock speed (which is used to calculate delay loops and such) and 'fuse' bits which define actual CPU clock source and settings (which are not programmed at all by uploading using the micronucleus bootloader) as well as some other random parameters which I don't use. I modified the board definition to set the expected clock correctly to 16.5MHz as set by micronucleus.
I don't really understand the 16.5MHz clock choice. This seems the clock most commonly used with V-USB for some reason and it is what micronucleus itself uses so when you upload your sketch using micronucleus you inherit this clock. The CPU spec says something like it can do 1-8MHz at 1.8V and 8-20MHz at 4.5-5V so doing 16.5MHz at 3.3V looks reasonable but it is not something the manufacturer guarantees as working. The USB clock is 1.5MHz so you need a multiple of that. The canonical V-USB solution is to run at 5V and use resistors/diodes/... to get the data lines down to 3.3V when it does not work with 5V. Digispark uses 3.3V so does not have this problem but is basically running overclocked.
There is V-USB and many variants of it that can be used to implement USB in software on ATtiny or ATmega but the canonical implementation uses different pins for USB from what Digistump does. The reason is probably to use INT0 which is somehow special. Looking at the datasheet it seems on ATtiny85 the INT0 can be triggered by level change on one pin and level change on any other pin triggers the other external interrupt when configured. So INT0 is probably picked to avoid interrupt sharing between the library and user program.
Nonetheless, there is V-USB variant ported to Digispark by the manufacturer Digistump. Unfortunately, I could not transfer more than a single byte in an USB transfer with this V-USB variant. Some examples work better and some worse but did not get anything to transfer some reasonable amount of data in both directions. The i2c-tiny-usb is built on top of the canonical library so needs to be ported/rebuilt/...
This project is part of:
Hack Week 15 Hack Week 16 Hack Week 19
Comments
Similar Projects
Lawndon - Recycled electric mower converted into a 3D printable and autonomous hill climbing mower. by jordonleach
Description
Lawndon is currently a remote controlled mower built from a recycled electric push mower and modified with 3D printable parts. The main idea is to have a high torque, low power mower to be efficient and powerful enough to climb hills. Previous iterations have progressed the original idea into a 4x4 mower with printable tank tracks.
> Continuation of lawndon project.
Goals
My goal this year is to begin implementing autonomous capabilities that are economical and easily reproducible without the requirement of using GNSS. I plan on utilizing UWB technology to run the triangulation necessary for automatic navigation of the mower.
Update
I successfully built a few mechanisms to triangulate the position of a UWB tag using 3 anchors, along with a node.js backend and Vue.js frontend to display in real-time the position of the tag related to the anchors.
View post here: https://github.com/jordojordo/lawndon/wiki/Videos#nov-22nd-2024
Resources
Visit the Lawndon repository for information.
Play with esp32 and arduino to create domotics stuff by aginies
Description
got some esp32 board and multiple small periphericals since a while at home, its time to play with them and learn a bit more about this stuff. Connect them to Home assistant.
Goals
learn more about esp32 and creating domotics objets.
Resources
esp32 home