Logic Analyzers with Arduino
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
/*
* Arduino code for 8 pin analyzer
* Due/Pro Micro can be Serial.begin(0);
*/
void setup() {
Serial.begin(0); // <-- Add required speed like 2000000
while (!Serial) ;
Serial.println("Connected");
}
void loop() {
Serial.write(PIND);
}
------------------------------------------------------------------
/*
* Run sigrok-cli
*/
sigrok-cli -i /dev/cu.usbmodem411 -I binary -O ascii --continuous
Can add more params like '--config samplerate=9600' <--- set the speed
------------------------------------------------------------------
Dump raw data and import it into PulseView https://sigrok.org/wiki/PulseView
dd if=/dev/cu.usbmodem411 of=./raw bs=1 count=1m
The above can be achieved by counting 0-255
Broken USB, homeless, no more testing... :( Lewisham Council making me sleep rough
Arduino UNO serial @ 2000000Hz
If to go even faster, one could analyse anything up to @100kHz, including I2C
The lab is in storage - can no longer work
Blame DWP, Lewisham Council
Create an account to leave a comment. Already have an account? Log In.
Become a member to follow this project and never miss any updates
By using our website and services, you expressly agree to the placement of our performance, functionality, and advertising cookies. Learn More
Have some extra Entropy on Due http://scruss.com/blog/2014/08/13/screamingly-fast-hwrng-on-arduino-due/