On line is possible to find tons of documentation and description, this is just a my notes collection about Circuit-Python, another fast prototyping system like Arduino IDE.
Translate
Showing posts with label USB. Show all posts
Showing posts with label USB. Show all posts
Sunday, December 13, 2020
Sunday, February 2, 2020
3D Printing - Ender 3 Pro USB powering problem
The connection between the two is via USB and the connection bring also the power (+5V).
In my case the computer is a Raspberry Pi 4 running OctoPrint.
Sunday, December 1, 2019
Arduino IDE settings for : Adafruit Trinket
The Adafruit Trinket is a small microcontroller from Adafruit and it can be programmed using Arduino IDE.
Saturday, January 5, 2019
Radioactivity measurements - introduction
Just for fun I started to collect some radioactivity measurements.
I did something similar 35 years ago in Italy with a DIY kit from Nuova Elettronica.
Why ? Well, as I said, just for fun and curiosity and don't forget we have a nuclear plant in Arkansas. Never hurt to monitor if something fishing is going on (and no, so far everything is fine for what I can say :) )
Saturday, December 8, 2018
Infinity Disney base
Information about the Disney Infinity base.
Going around antique mall I bough few bases.
I'm collecting here some information, would be nice to be able to use the NFC reader for other purposes.
Going around antique mall I bough few bases.
I'm collecting here some information, would be nice to be able to use the NFC reader for other purposes.
Sunday, July 15, 2018
MSP430f169 LCD development environment
Until now I always developed code for the Olimex board MSP430F169 LCD using an open source compiler (GNU) and using a parallel port->JTAG adapter to program the board and do some debug.
That requires a computer with parallel port.
The goal of this article is to see if is possible to use an USB->JTAG adapter or using the Spy-by-wire connection.
Friday, February 9, 2018
5V Solar Power Supply - testing results
As described in the 5V Solar Power Supply - testing system article, here some results after running tests for a while.
First of all, I did connected the data logger to the battery terminal and let it run for few days, with the load connected, drawing around 350mA.
Here a graph, starting with the battery charged.
Once the battery was depleted, with the load connected there is no way to have it recharged enough.
The weather was good at least for the last two days, so plenty of sun, but even with the 3W solar panel the battery was unable to be charged enough.
First of all, I did connected the data logger to the battery terminal and let it run for few days, with the load connected, drawing around 350mA.
Here a graph, starting with the battery charged.
Once the battery was depleted, with the load connected there is no way to have it recharged enough.
The weather was good at least for the last two days, so plenty of sun, but even with the 3W solar panel the battery was unable to be charged enough.
This indicates anyway the need to disconnect the DC/DC converter in order to have the battery charged.
Tuesday, October 10, 2017
5V Solar Power Supply - testing system
In order to test the solar power supply without connecting the Raspberry (also because used to monitor the solar charger itself), here how I'm proceding.
Saturday, September 24, 2016
Playing with Alexa
It is amazing how time's fly !
Are already almost two months since my last post !
Many things happened of course, busy life, work work work and only recently I restarted to play with something new, for fun.
Amazon made public a demo project to use a Raspberry Pi to be like an Echo, the Amazon vocal command toy.
So I decided to try, I did put my hands on a Raspberry Pi 3 (in order to have embedded WiFi and Bluetooth), a nice USB microphone and a speaker (as suggested in the Amazon project) and one evening, with a friend, we followed the instructions and installed Alexa on a Raspberry.
Here few notes about
It took about 4 hours to install everything. The longest time was spent updating Raspbian, probably the update alone was about 1 hour and half.
The installation of tools and environment (the project is in Java, uses Node.js and Maven) took the other long part and the configuration the rest.
And yes, we did enjoy ourself watching Youtube (comedians) while waiting :)
YES ! Amazingly it did work immediately and all considered is not bad at all !
It is possible to hear some static/digital noise in the speaker, especially if a monitor and USB keyboard is connected to the Raspberry, but the audio quality is not bad.
Let see some pro and cons
For example connecting a bluetooth microphone, controlling I/O, interfacing something personal like my Logitech Squeezebox, enabling the streaming music, connecting a bluetooth speaker and so on.
Are already almost two months since my last post !
Many things happened of course, busy life, work work work and only recently I restarted to play with something new, for fun.
Amazon made public a demo project to use a Raspberry Pi to be like an Echo, the Amazon vocal command toy.
So I decided to try, I did put my hands on a Raspberry Pi 3 (in order to have embedded WiFi and Bluetooth), a nice USB microphone and a speaker (as suggested in the Amazon project) and one evening, with a friend, we followed the instructions and installed Alexa on a Raspberry.
Here few notes about
Time
It took about 4 hours to install everything. The longest time was spent updating Raspbian, probably the update alone was about 1 hour and half.
The installation of tools and environment (the project is in Java, uses Node.js and Maven) took the other long part and the configuration the rest.
And yes, we did enjoy ourself watching Youtube (comedians) while waiting :)
Is it working ?
YES ! Amazingly it did work immediately and all considered is not bad at all !
It is possible to hear some static/digital noise in the speaker, especially if a monitor and USB keyboard is connected to the Raspberry, but the audio quality is not bad.
Let see some pro and cons
Pro
- Relatively cheap
A Raspberry Pi, a speaker and a microphone is what is needed. Many of us have this stuff in some box by sure :) - Easy to install
The instructions are quite clear, some not updated to the last version parts but for somebody who plays with Raspberry or somebody with a basic computer science knowledge is not a problem. - It works
Well yes, is a pro :)
Cons
- You need an Amazon account. No problem for me but is important to realize that Alexa become a part of the Amazon account.
- Is not an Echo !
This is important !! The project is a demo and has some not intuitive/cumbersome way to activate Alexa, so don't expect Echo performances !
In details : - A X11 graphic environment is needed ! Specifically they suggest to use VNC in order to connect from other computers.
Is not a real embedded system like Echo. - Everytime the Raspberry is turned On is necessary to open terminals and start a local server plus a client.
- When the client starts it is requested an https connection to retrieve a certificate.
A browser is needed thus plus some manual operations.
Once retrieved the certificate Echo works until the Raspberry is shutted off or the application is stopped - Some functionalities are disabled by default, like streaming music.
Need to investigate if is possible to enable them.
Capabilities
So far I tried different things. The default of course is asking Alexa things like the time, the weather, news, etc.
And I have to say I'm impressed with the capability to recognize my accent !
I tried many vocal command systems in the past and all of them, ALL OF THEM, always failed to recognize my English.
And I have to say I'm impressed with the capability to recognize my accent !
I tried many vocal command systems in the past and all of them, ALL OF THEM, always failed to recognize my English.
I estimate for Alexa a recognizing average of 90/95% of what I say !
Simply amazing !!
Then I was able to interface Alexa with my google calendar and now I can handle it via voice. Cool.
Another interface was with IFTTT, so I can now create different triggers. So far I installed a trigger to call my cell phone.
Another interface was with IFTTT, so I can now create different triggers. So far I installed a trigger to call my cell phone.
So .. what is for ?
Fun ! :)
And is a relatively cheap way to test the capabilities of Echo.
I'll investigate few things in the next week or months (no time as usual ..) to see if is possible to modify the code to build something more close to the real Echo with maybe some custom capabilities.
For example connecting a bluetooth microphone, controlling I/O, interfacing something personal like my Logitech Squeezebox, enabling the streaming music, connecting a bluetooth speaker and so on.
Surely the evaluation aspect of this project is worth alone the time spent to put together the gadget and playing with it
Sunday, August 28, 2011
Interface Roomba-USB
In order to diagnose/repair a Roomba, it is necessary to do some test and measurements.
Even if each Roomba has a diagnostic program on-board, often is necessary to have more control and a better feedback, with also some measurements.
To do so the basic tool every Roomba-hacker needs to have is a cable to connect the Roomba with a PC.
To do so the basic tool every Roomba-hacker needs to have is a cable to connect the Roomba with a PC.
There are many ways to buy/build such cable.
This article describe how I did it, just to give ideas. Is not necessarily the best way but it worked for me.
Material
We started from a consumer SIM USB card reader. These readers are available on ebay and similar places for few dollars.
Here a picture of the electronic board (they usually come in some kind of plastic box).
This article describe how I did it, just to give ideas. Is not necessarily the best way but it worked for me.
Material
We started from a consumer SIM USB card reader. These readers are available on ebay and similar places for few dollars.
Here a picture of the electronic board (they usually come in some kind of plastic box).
These USB SIM card readers usually are based on a chip capable to convert the USB port into a serial one, the Prolific PL-2303.
Then a cable with a minidin connector is needed and eventually a PCB minidin.
In my specific case I used :
Then a cable with a minidin connector is needed and eventually a PCB minidin.
In my specific case I used :
- USB SIM card reader
- 8 pin minidin PCB outlet
- 8 pin minidin cable (at both ends)
Preparation
The first thing to do is to remove from the USB SIM card some useless components, like the SIM card connector, a 74HC04 and a Crystal (3.5 Mhz).
At this point is necessary to identify on the PL-2303 the pins we need to connect.
- Pin 1 PL-2303
TXD -> connected to the Roomba RXD (pin 3 minidin) - Pin 3 PL-2303
RTS -> connected via a transistor to the Roomba Power pin (pin 6 minidin 7 - pin 5 minidin 8) - Pin 5 PL-2303
RXD -> connected to the Roomba TXD (pin 5 minidin 8 - pin 4 minidin 8) - Pin 7 PL-2303
GND - pin 6/7 minidin 7 - pin 7/8 minidin 8)
Here the schematic of what we want to do :
It is very important to pay attention of the type of minidin used.In the schematic I used the original Roomba minidin 7, so the pinout is DIFFERENT from the minidin 8 !
On the net is possible to find information about the pinout and specifications, like here.
Here some pictures of cable preparation.
Monday, August 22, 2011
CY7C68013A USB Logic Analyzer - Update
Time ago I received to test a little board based on the Cypress CY7C68013A and I wrote some notes about it.
This is a quick update of those notes.
These are informational notes only and are old!
I strongly suggest to buy the Logic package in order to have the best results and easy operations.
The CY7C68013A USB Logic Analyzer is a small board made by a Chinese company (Lcsoft) sold on Ebay from a China re-seller as a Logic Analyzer tool.
It's a small board based on a Cypress CY7C68013A micro-controller (an 8051 clone).
This is a quick update of those notes.
These are informational notes only and are old!
I strongly suggest to buy the Logic package in order to have the best results and easy operations.
The CY7C68013A USB Logic Analyzer is a small board made by a Chinese company (Lcsoft) sold on Ebay from a China re-seller as a Logic Analyzer tool.
It's a small board based on a Cypress CY7C68013A micro-controller (an 8051 clone).
Exists a relatively easy hack in order to have the board working with Logic under Linux (tested with the 1.1.9 version under Ubuntu 11.04 quite time ago).
Here the hack :- Be sure to don't have Logic running on the Linux box
- Power on (plug-in) the Cypress CY7C68013A board
- Wait few seconds, the time for the board to start
- Remove the jumper J1
- Start Logic
After few seconds Logic will indicate ready to Start.
What happens is that without the jumper, Logic (at least the version 1.1.9) is loading the necessary firmware in the board and then start it.
What happens is that without the jumper, Logic (at least the version 1.1.9) is loading the necessary firmware in the board and then start it.
Note that if you put back the jumper, all is working until you turn the board off and then back on or close Logic.
i.e. the firmware loaded is not permanent, every time it needs to be loaded.
I decided to put the board in a small box, for better protection and to be able to host a push-button.
Not having around any decent box, I temporary used two pieces of plexyglass. Ugly but functional :-)
I used a NC push-button, connected of course to the jumper J1.
Now in order to use the board with Logic, simply connect it to an USB port, then after few seconds, push the button and, while keeping it pushed, launch Logic.
When logic come out with Start, release the button and everything should work.
When closing Logic the configuration is lost, so it is necessary to un-plug the board then plug the board back, following the procedure described above.
Much better to have an original Logic board.
I decided to put the board in a small box, for better protection and to be able to host a push-button.
Not having around any decent box, I temporary used two pieces of plexyglass. Ugly but functional :-)
I used a NC push-button, connected of course to the jumper J1.
Now in order to use the board with Logic, simply connect it to an USB port, then after few seconds, push the button and, while keeping it pushed, launch Logic.
When logic come out with Start, release the button and everything should work.
When closing Logic the configuration is lost, so it is necessary to un-plug the board then plug the board back, following the procedure described above.
Much better to have an original Logic board.
Subscribe to:
Posts (Atom)



















