#99 Logic Analyzer for I2C, SPI and many more protocols

  Переглядів 49,040

Ralph S Bacon

Ralph S Bacon

6 років тому

So we Arduinites use I2C and SPI (and maybe a couple of other protocols) without really giving too much thought to what is happening to the signals going down the wires - until it goes wrong, that is!
This cheeky little module lets us visualise exactly what is going on, using your PC as the screen and the USB cable as the means to transmit the signals back to the PC. The software is easy enough to install if a little time consuming (follow the instructions EXACTLY) and watch the demo to see how to use the Sigrok Pulseview utility with an Arduino. It is really brings the whole I2C bus (and others) to life.
Hobby Components web page with full instructions
forum.hobbycomponents.com/view...
Sigrok site for the driver(s)
sigrok.org/wiki/Windows#Windo...
Zadig Github with more information on installing those drivers
github.com/pbatard/libwdi/wik...
Amazon UK site of the actual product but widely available
www.amazon.co.uk/gp/product/B...
In the US, go to Amazon.com and search for "usb 8ch 24mhz 8 channel logic analyzer" and you will get (seemingly) identical products like this one:
www.amazon.com/Logic-Analyzer...
Needless to say, the USA does everything bigger so you get a choice of about 8 similar products!
I've placed the RTC (Real Time Clock) sketch from video #19 I use here (plus the I2C scanner) in my GitHub repository, super easy to download!
github.com/RalphBacon/Logic-A...
---
If you like this video please give it a thumbs up, share it and if you're not already subscribed please do so :)
My channel is here:
/ ralphbacon
How can I remember this? Memory tip: "See" Ralph Bacon, geddit? [You can also use this link: / ralphbacon ]

КОМЕНТАРІ: 180
@whitefields5595
@whitefields5595 6 років тому
Ralph, You have a gift for explaining things in a well-paced easy style. You clearly know far more than you present but keep it at a level that the Arduinites / hobbyists will absorb and then go and experiment for themselves. That is what all this is about otherwise we would have chosen another hobby! I have always wondered if I should have a logic analyser but thought it would make me more dangerous than I already am. Based on this video I will get one of these. Not just for comms analysis but also for general debugging as one of the comments below highlights.
@RalphBacon
@RalphBacon 6 років тому
Indeed, go for it, Whitefields, these are easier to use than I thought they might be, but be aware that there are variants that use the same or similar software and which may not be as easy to set up. In some ways the more you spend the better the facilities (think PicoScope) but this cheap entry level unit is a great hobbyist tool.
@The.Doctor.Venkman
@The.Doctor.Venkman 5 років тому
Thanks for your time doing this very informative video, Ralph. It's clear and well presented!
@RalphBacon
@RalphBacon 5 років тому
Glad you like it Andy, thanks for posting.
@DrexProjects
@DrexProjects 6 років тому
I have watched this a couple times now as I do with almost all of you videos. Maybe one day I will get one of those Logic Analyzers. Thanks for the top notch explanation of how it works.
@RalphBacon
@RalphBacon 6 років тому
Thanks for your post, Drex Projects, good to hear from you.
@shmuelyakov
@shmuelyakov 5 років тому
I'm a bit behind on watching your videos so I've just seen this one. You made this subject so clear that even I was able to follow and understand it all. Thanks for all your great videos. They've opened a whole new area of interest for me.
@RalphBacon
@RalphBacon 5 років тому
Stewart, what do you mean "...even I was able to follow and understand it...".? _Everyone_ can understand this stuff, it's not rocket science (well, unless you're making model rockets with an Arduino, of course) with a bit of perseverance, tenacity and what John Wayne called "True Grit"! But I'm very flattered that you think I'm doing a good job at explaining stuff. Thank you and Happy New Year!
@DavidUnderhill
@DavidUnderhill 6 років тому
Thank you kindly from Australia for all these great videos de VK4MU
@RalphBacon
@RalphBacon 6 років тому
You're most welcome, David, nice to have Australians on board for the ride. Thanks for posting and keep tuned!
@tonybell1597
@tonybell1597 6 років тому
Excellent ob Ralph.... I have also ordered one..... what a cracking bit of kit!
@RalphBacon
@RalphBacon 6 років тому
Cracking, indeed, Tony. I wish I had discovered these sooner, but I was focussed on how I could ever afford a Picoscope (answer: when hell freezes over). So here we have an ideal solution for casual hobbyist use. I must do another, more in-depth video as others have requested this, so I've added it to my backlog. Thanks for posting, good to hear from you.
@michaelhawthorne8696
@michaelhawthorne8696 6 років тому
I bought one and the grabbers too before the video finished !!! Just what I needed. Nice price too. Looks like it will decode better than some versions I have seen on Scopes. Thanks for this video Ralph.
@RalphBacon
@RalphBacon 6 років тому
You must be eager, Michael! But I found it to be a very nice tool, and once set up it "just works". And if you're in the UK you can support the Far Eastern factory that makes these devices for Hobby Components! Yes, I know, too cynical. :)
@bgable7707
@bgable7707 3 роки тому
Simple, thorough, clear and concise! It really is that easy. Thanks !!!
@RalphBacon
@RalphBacon 3 роки тому
Glad it was helpful!
@douglasthomson2986
@douglasthomson2986 4 роки тому
Great little gadget. Lovely to see what's actually being sent on the bus. Opens things right up.. Was going to buy the Saleae analyser till i found this one Ralph. For the price it's a steal , especially with all the protocols it will handle. I found the software set up straight away, but i know some have had problems. Cheers for the working demo.
@RalphBacon
@RalphBacon 4 роки тому
Thanks for your post, Douglas Thomson, good to hear from you.
@flashcorp76
@flashcorp76 4 роки тому
Thanks 😁Exactly what I was looking for 👍🏻Clear and concise
@RalphBacon
@RalphBacon 4 роки тому
Glad you liked it, thanks for posting.
@dafpnp
@dafpnp 3 роки тому
Beautifully described. Thank-you. Subscribed 👍. I need to watch more of such videos.
@RalphBacon
@RalphBacon 3 роки тому
Awesome, thank you!
@willofirony
@willofirony 6 років тому
Yet another excellent video, Ralph. If you ever come back to this subject, one analysis, that is excellent for demonstrating interrupt driven or cycle sharing streams, is to analyse the serial TX line and an output pin, say to an led. In the setup function, send a string to serial via println(). Then in the loop function flash the output pin . If everything is wired up correctly, Sigrok should show that when we send a string (or any other data) through serial, the function returns BEFORE the transmission has completed. So, the output starts pulsing before the the string has all been sent. Just one of many examples of how a logic analyser is valuable for showing how the whole system works, not just for fault finding. I seem to remember, many videos ago, you came upon a problem, in which you had sent a string through serial to show that you where in the constructor of a class, but only the first few characters were sent.. Your analyser should show you why that happened.
@RalphBacon
@RalphBacon 6 років тому
A great idea Michael. It would indeed be interesting to show a bit more with this device (another viewer has commented that a more in-depth video would be appreciated) so I can only say Watch This Space! Good to hear from you again.
@george8bitsworth
@george8bitsworth 6 років тому
Thanks for the great video. I think I should get one of those analyzers.
@RalphBacon
@RalphBacon 6 років тому
At that price, George, it's probably worth a punt. Effectively that's what I did on behalf of all my Arduinite followers and with good results, it seems. Just be careful which version you get as I've been made aware that there are several clones (of the Saleae original) and I'm not sure whether this version by Hobby Components is one and the same. All I know is that my version with the opens source software works well (on Windows 10, at least).
@vince_martyn
@vince_martyn 3 роки тому
Just ordered a logic analyzer. Thanks.
@RalphBacon
@RalphBacon 3 роки тому
It works well and deserves some focussed effort by the user to get the most out of it. I was blown away by the I2C data stream being displayed in the way I showed in the video! Have fun with it, Vince.
@whitefields5595
@whitefields5595 6 років тому
Ralph, 15 months on from your original posting, I followed your video on 9 Feb 2018 and can confirm that it all works. One slight wrinkle is the Hobby Components link to Sigrok needs updating. I suggest your deciples go straight to SIGROK then search on PulseView. Then find a download for their operating system. The driver comes packaged with the download, just run the driver FIRST, then install PulseView. In my case the 8 channel device self-populated in the window and ran first time. The Hobby Components site does have some useful looking troubleshooting info, but I did not need it. Thanks for introducing us to this tool.
@RalphBacon
@RalphBacon 6 років тому
That's a great piece of information, whitefields5595, and of course, highlights the problem with links to the Internet (which is why I tend to take a copy of the libraries I use in my demos and put them on my GitHub in case they disappear or get updated without being backwards compatible). Glad you liked the demo, it's amazing what you can get for just a few pounds/dollars.
@sanelleric8875
@sanelleric8875 3 роки тому
Fantastic tutorial!
@RalphBacon
@RalphBacon 3 роки тому
Glad you liked it!
@ChrisFredriksson
@ChrisFredriksson 6 років тому
Nice video! I already got a Saleae logic analyzer which works really nice, so I just wanted to see how yours worked and if it might be something to buy and have an extra and it certainly seems valuable! But the most interesting part is that I learned some more about I2C, I didn't know how the scanner worked until now (I haven't really looked either). I guess as you say its similar on SPI, it might also be similar on 1wire as well? Its quite clever, yet very simple. I've had troubles with 1wire on Atmel Studio without Arduino, this might help with getting that to work :) Really awesome and many thanks for this video! :)
@RalphBacon
@RalphBacon 6 років тому
Thanks for your post, Chris Fredriksson, good to hear from you.
@nilsskansar416
@nilsskansar416 5 років тому
Excellent as usual. I purchased Salae copies on Ebay using Salae's free software. Less than $ 10 including shipping. There is also an Arduino Logic Analyzer on the net. Uno R3 or Mega for more ports. Much lower speed but works ok for I2C and serial.
@RalphBacon
@RalphBacon 5 років тому
Thanks for your post, Nils Skansar, all useful information, good to hear from you.
@qzorn4440
@qzorn4440 3 роки тому
this is sooo relaxing while i have some greek yogurt and learn a lot about the logic analyzer and i2c thanks...:)
@RalphBacon
@RalphBacon 3 роки тому
Happy to hear that!
@jerryocrow1
@jerryocrow1 3 роки тому
GREAT video. You are a master!
@RalphBacon
@RalphBacon 3 роки тому
Wow, thanks!
@fixitralphltd4988
@fixitralphltd4988 Рік тому
Cool info Ralph 😁
@RalphBacon
@RalphBacon Рік тому
Glad you liked it!
@avejst
@avejst 6 років тому
Thanks for sharing 😀👍
@RalphBacon
@RalphBacon 6 років тому
Glad you liked it Asger, perhaps you will be tempted to try one out (but read the comments by others here you have found it cheaper).
@pwkoert6594
@pwkoert6594 3 роки тому
Your videos are very use full, although this was about a logic analyzer ( I need to get me one! ) I learned a lot about I2C, (also saw an other video by Antony Cartwright, no good sound but very nice example 'live programming' I2C with 24c64 EEprom) Now I knot how to communicate with out device specific libraries, witch could save memory (later on I'll build my own libraries cos they are very use full) but most of all now I can communicate with other I2C devices with only a datasheet and no lib's at all. (except the of course). I always thought it would be this simple but could not find a clear explanation. Thanks. (just found an EEPROM on my DS3231 module... 8-)
@RalphBacon
@RalphBacon 3 роки тому
I'm glad you're finding these videos useful; sounds like you like datasheets as much as I do!
@pwkoert6594
@pwkoert6594 3 роки тому
@@RalphBacon Nr.5 needs more input... btw. I used to bitbang LPT & COM ports to 'control'CD4021 & CD4094 (and others) with Qbasic and later VB6, until WinXP protected all acces to hardware addresses. Due to circumstances I was not working the hobby for a few years but last summer I 'found' China (BangXpress..) and You-Tube. For less than 100.=Eu I now have several Arduino's, RTC's, TFcards.., 1 LCD (I2C) and a 6 axis accelerometer (?) and almost all 'old' electronic parts & breadboards. But I do miss my Tektronics oscilloscope (+-1958) with a CD4067 I could used it as a 16 channel logic 'analyzer' ( I could go on for a few hours..) What I am really looking for is a way to 'talk' with an Arduino from VisualBasic (maybe C+-#@), I hoped it would be 'easy' cos the Arduino IDE does it too (via USB). But opening a comm port (3 in my case) with 9600 8,n,1 only gives me garbage. An example I found is made with VisualStudio2013 basic and it looks like I did it right. (i'd like to use VB6, it still works with XP (& 7) ( a *pointer to a tutorial should do the trick.. 8-) /Johnny Five
@joeblow2109
@joeblow2109 6 років тому
Excellent video ........ not sure how much use this would be for a novice (that would include myself) in pinpointing a problem but i'll by one and find out! These used to cost hundreds of dollars not so long ago....... 20 years back:) Cheers
@RalphBacon
@RalphBacon 6 років тому
Exactly so, Joe. For the money even novices can experiment, and by doing so learn quite a bit about the communication protocols that the Arduino uses - and which we just consume without understanding what is actually going on. This is not a tool that we would use on a daily basis. But just like that funny shaped spanner in your toolbox, when you need it you got it! Let us know how you get on.
@epiendless1128
@epiendless1128 3 роки тому
Thanks. I needed a demo before buying. Working on a team who design and code with I2C a lot, with a high turnover of unfamiliar I2C chips and differing libraries, I have often wanted to pummel the folks who decided to make the read/write bit the _least significant bit,_ so that the question "is that address you just gave me shifted or not?" or "does the software want the shifted or unshifted address?" comes up _every single time.._ Fixing it becomes non-trivial when the bit shifting is only _one_ potential reason why things are not working. I'll often be explicit and say byte one is D0 for a write and D1 for a read.
@RalphBacon
@RalphBacon 3 роки тому
The devil is always in the detail, glad this demo helped in some small way!
@tenlittleindians
@tenlittleindians 5 місяців тому
I bought a cheap version from Banggood a couple of years ago but haven't played with it. I'd love to be able to read the binding codes used to bind a RC transmitter to the reciever in cheap toy drones, electric skateboards and RC cars. All these toys have independent transmitters and wouldn't it be nice to be able to make an Arduino controller that could work with any of them. I could also read the connection code between my garage door and it's remote to build a phone app to open or close the door over the Internet when desired such as letting a neighbor into my garage while I'm on vacation to get to my lawnmower.
@RalphBacon
@RalphBacon 5 місяців тому
Sounds like you have an interesting time ahead with your project!
@Galal0110
@Galal0110 5 років тому
Best bit of Bacon I've had in my life ;) Great video.
@RalphBacon
@RalphBacon 5 років тому
And in this heatwave we're having (in the UK), the Bacon's sizzling 🥓🔥 Glad you liked the video!
@Galal0110
@Galal0110 5 років тому
Haha I'm pretty sure you heard this a gazillion time but I couldn't resist sorry xD The best thing about the video is that you decided to use Sigrok Pulseview instead of Saleae Logic which everyone is using all over UKposts but unfortunately is it designed for legit Saleae hardware and I feel it's kinda unethical to use it with clone hardware like this one. Not to mention ofc that your video is very informative and you describe things in the simplest of words instead of some pretentious people that feel good making things complicated, trying to look smart. I'm an automotive embedded systems professional and basically knew all about that stuff, but I really enjoyed how you talk haha. Hats off sir.
@RalphBacon
@RalphBacon 5 років тому
Thank you for your kind words. I'm glad you like my videos and it's feedback like this that lets me know that. Thanks for posting.
@porlando12
@porlando12 6 років тому
Great video! I just got my hands on a Saleae Logic 8, looking forward to hacking some proprietary air quality sensors!
@RalphBacon
@RalphBacon 6 років тому
Thanks for your post, Philip Orlando, good to hear from you. Good luck with your "hacking"!
@nilsskansar416
@nilsskansar416 5 років тому
What about Weather stations ? Tried that ? Running on 433.95 Mhz in EU , 315 and others in the US. Check the Raspberry PI sites,lots of decoding for environment instruments and weather going on. They use SDR-RTL receivers to cover a wide frequency range.
@modicon1108
@modicon1108 5 років тому
Hello from Canada Ralph. Another excellent video, thank you. I was wondering if there are any bus voltage issues when connecting the LA (powered by 5 Volt USB source) to a 3.3 volt I2C logic bus?
@RalphBacon
@RalphBacon 5 років тому
And a hearty "Welcome Canada", modicon1! I see your point but I don't believe the probes will have 5v present on them; they should be well buffered, I would think. Perhaps others have more direct expertise on this? Anyone?
@modicon1108
@modicon1108 5 років тому
Thanks for the quick reply Ralph... I did some further digging and was able to answer my own question from the Saleae web site. They sell the Logic 8 analyzer which is functionally equivalent to the the one we are using and they say that the input probes with tolerate 1.8V - 5.5V. That is information enough for me to give it a go. If my Logic Analyzer goes up in smoke I will be sure to report back.
@RalphBacon
@RalphBacon 5 років тому
Great news, good luck with that, and yes, do report back on your success!
@markgreco1962
@markgreco1962 4 роки тому
Ralph have you made a video about a Function Generator or how to use one or if you really ever need one? I have watched this video several times and use it when I set up my system. But with my birthday coming up I thought about getting a Function Generator.
@RalphBacon
@RalphBacon 4 роки тому
I haven't done a video on a function generator, Mark, sorry. I have this model: bit.ly/2slz99T because I wanted to create arbitrary waveforms (eg emulating switch bounce) but you can cheaper ones if you don't need that facility. It's a fairly niche product even in this field so I don't think a video is on the cards. But others must have done a few?
@josephtannenbaum8696
@josephtannenbaum8696 3 роки тому
Us Amazon didn't have this one and there are some differences with the ones available without instructions on how to use them. EI: I bought a KeeYees one and it has ch 1-8 and instead of one of the grounds, it has clk pin. It is not connected to the ground pin. I did use pulseview and watch I2C do a scanner and the decoder worked like a charm. I also had to no use a hub.
@RalphBacon
@RalphBacon 3 роки тому
Excellent, I'm glad it worked out for you, Joseph.
@pauloe8pck830
@pauloe8pck830 6 років тому
Hi Ralph, thanks for the video. Do you know if this analyse can be used to look at a software serial signal? I am still messing about with the HC12 and getting nowhere fast :-) I still hope that you might be interested in a video about getting altitude from a BMP180 across to a receiver. I have a problems with getting the data ready for serial transmission. Anyway thanks for your really useful videos once again.
@RalphBacon
@RalphBacon 6 років тому
I don't see why it would not work, OE8PCK, after all, Software Serial is just a software implementation of the hardware serial protocol. Regarding other videos... believe me, the list is long and time is short. What to do?!?
@pauloe8pck830
@pauloe8pck830 6 років тому
Got the Logic Analyzer working . It is really good. I am sure it is very easy regarding the Software serial if you know what to do. i am trying to send data with max 3 digits before the decimal point and two after up to 900, it just does not work. There is no information on Utube. O well never mind.
@mikeh6206
@mikeh6206 3 роки тому
Hello Ralph, I'm a newbe to this digital stuff. If I had a two part device (such as an aircon unit and the indoor blower which has just a data wire and ground) How would you determine which protocol to look for? Can this device (or any you know of) take a sample and tell if it is I2S or some other protocol? So far, the assumptions are that the protocol is known. Thanks. Love your videos.
@RalphBacon
@RalphBacon 3 роки тому
That logic analyser has several known protocols built in, so you could just try them all, Mike! But it could just be serial data like the data you send from the Arduino to your 8-N-1 Serial monitor (eg 8 bits, no parity, 1 stop bit). Start with the simplest protocol (like the one I just described) and move to the more complex ones like I2C. No easy way of finding out if the manufacturer won't/can't tell you.
@embohansen1203
@embohansen1203 6 років тому
What are those short positive pulses (much shorter than the clock time) on D1 on the falling edge of the clock for some, but not all, data bytes (starting from 26 min 30 secs)?
@RalphBacon
@RalphBacon 6 років тому
I believe you're seeing the ACKnowldege pulse on D1, Embo, shown as ACK in the Address/DATa line at the bottom of the picture. It is so short that it doesn't always appear because I have not zoomed in enough.
@TheRESMAT
@TheRESMAT 5 років тому
This tutorial is beautifull, create tutorial comparison diagram timing (datasheeht ) of sensor i2c mpu6050 and software logic analyzer. Very good channel thanks
@RalphBacon
@RalphBacon 5 років тому
Glad you liked the video, Nelson, great to hear from you.
@Moonbrony
@Moonbrony 6 років тому
Useful little gadget. And it's weird that you're using an RTC to demonstrate it as I'm working on one now. Is it possible to set the time on a DS3231 using a rotary encoder? I'm new to Arduino and trying to make the clock I've built self contained but I have no idea where to start. Hoping to get it to enter hour set mode with a push on the encoder, then left and right for up/down, next press cycles to minutes etc.
@RalphBacon
@RalphBacon 6 років тому
A rotary encoder would be perfect to set the time on a DS3231, Moonbrony. See video #19 to see how to use one (and how they work, it's important you understand the principles). If you do the sketch in that demo you will probably realise how to write it to set the time. Come back here if you get stuck! I might even steal your sketch, heh heh.
@Moonbrony
@Moonbrony 6 років тому
Thanks. If I get this working as intended I'll happily send you my sketch. I bet a lot of people would like to make something like this as a project.
@RalphBacon
@RalphBacon 6 років тому
Yes, they would, and would you believe it I almost did one but decided on using two (just two) switches instead. But a rotary encoder would be much slicker. If you ever create that sketch let us all know (and post the sketch on Github or somewhere central - or I can do it for you). Good luck.
@nilsskansar416
@nilsskansar416 5 років тому
Would like to add : Don't forget the Arduino I2C scanner. With this you can check I2C module's address in HEX. Modules from Ebay are not always what you see advertised. Remember some I2C boards have from the factory installed 4.7K or 10k resistors. Only one set is needed. If you add a lot of I2C modules the resistance will be too low when many resistors are connected in parallel Check with your multimeter.
@RalphBacon
@RalphBacon 5 років тому
Yes, absolutely correct. (They add the pull-up resistors so the board can work as-is, quickly, without beginners stumbling over how to source and connect the resistors.) But adding multiple modules, all with pull-up resistors, will cause the I2C bus to fail, just as you say. Good point, glad you raised it here, thanks for posting.
@sortofsmarter
@sortofsmarter 5 років тому
My scope doesn't do the fancy read so i was going to try sparkfun's Bus Pirate but this one is perfect only amazon doesn't seem to offer it in the states..the ones on ebay seem to be bad Chinese copys and I'm not sure if they will be the same??
@RalphBacon
@RalphBacon 5 років тому
Best is to see the reviews and comments on these other sites in China. The bad ones will soon get negative feedback and the good ones will get lots of +1s.
@Roy_Tellason
@Roy_Tellason 4 роки тому
@@RalphBacon Sparkfun _does_ offer a device very similar to the one you show in the video, about $20 as of when I looked a few minutes ago. One of those commenting there recommended the "bus pirate" cable to make it easier to hook up ($4.95) and they also offer leads with hook connectors ($4.95) and a logic level converter ($2.95). I think that I may be placing an order in the not-too-distant future...
@6-Iron
@6-Iron 4 роки тому
Can I use this to confirm the high & low voltages coming from a logic level shifter?
@RalphBacon
@RalphBacon 4 роки тому
I believe this will track anything you throw at it, William. If you specify the protocol being used it will arrange them in a more readable format but if it's just a random signal that would be fine too.
@HitAndMissLab
@HitAndMissLab Рік тому
Is it better to have logic analyser built into oscilloscope or to have it on PC?
@RalphBacon
@RalphBacon Рік тому
Short answer: yes. Longer answer: horses for courses. If you scope has an 8-channel logic analyser as part of its make-up then that's a bonus and should work just fine. Having one connect to the PC means that you might have longer leads or awkward viewing angles along with separate software but a PC-based one will also do the job just dandy.
@johncherry108
@johncherry108 6 років тому
Nice one Ralph. Logic waveforms (not "graphs") can be a fantastic source of information about what's going on in a circuit. I just ordered one, but given I'm in the antipodes, it will take some time to arrive. In the meantime, do you, or your subscribers, know of anyone who has it working in Linux?
@RalphBacon
@RalphBacon 6 років тому
Ah, logic waveforms, not graphs, point taken (now I know what to call them) thanks for the heads-up. I don't know how well it works in Linux, John, but given its software writers proclaim loudly it works on several platforms I'm hoping that you won't have issues. Anyone else have experience on Linux, guys?
@kbcbala
@kbcbala 6 років тому
@John: This guy did. ukposts.info/have/v-deo/g5l1eIJsr6qfqGQ.html
@pileofstuff
@pileofstuff 6 років тому
I just got my analyser this week (same one, super-cheap from e-bay), and yes, the Sigrok/Pulseview software does just fine on Linux. In some ways even easier, because tusing your distro's package manager makes it a "one click install". No fussing about with drivers. Here's my (less eloquent than Ralph) look at it: ukposts.info/have/v-deo/hpV9Z6WLf3qVmWw.html
@RalphBacon
@RalphBacon 6 років тому
Cool that it works so well on non-Windows platforms, thanks for letting us know.
@borayurt66
@borayurt66 6 років тому
Excellent!
@RalphBacon
@RalphBacon 6 років тому
A succinct comment but one which means such a lot to me, Bora! Thanks for your feedback and good to hear from you.
@borayurt66
@borayurt66 6 років тому
Sometimes one word describes it all.. :-) I have a Salea clone... Great little devices to have around when things go weird...
@RalphBacon
@RalphBacon 6 років тому
Is that a new technical term there, Bora, "when things go weird"? Heh heh! Yes, one word is sometimes all that is needed. Less is more and so on. Serious question: you have a Saleae clone which have been mentioned in the comments here by many others - how does it compare to the one I demoed? Does it use the Saleae software or the same I used? I know, stop the questions already! But your input could be useful to others here too... (no pressure then).
@borayurt66
@borayurt66 6 років тому
It was a gift from a friend, he told me to download the Saleae software, so I did. I works pretty much the same, the interface is almost identical. I did not know there were similar devices and software until I saw your video. I wonder if these devices are competable with each other? I will try the software you used in the video with my clone device. Check this video: ukposts.info/have/v-deo/qoJml3t9iYVqwKc.html This is exactly what I have, and the software I use.
@RalphBacon
@RalphBacon 6 років тому
Your device certainly looks *very* similar, although the software looks a bit more sophisticated. Hmm. I might investigate further on this just so that I know what is the same and what is not. But I think we are agreed that it is pretty much the same in terms of functionality. Thanks very much for letting me know, appreciated.
@mac_uk5464
@mac_uk5464 4 роки тому
Can I use I2C protocol to transmit between 2 units at a distance of 150ft, if I beef up the voltage potential on the lines?.
@RalphBacon
@RalphBacon 4 роки тому
No! The data will be corrupted, Malcolm. However, you can use something like a PCA9515A (Dual Bidirectional I2C Bus and SMBus Repeater) or P82B715 which is a bit like using an RS485 link but specifically for the I2C protocol. It allows up to 50m cable runs. I'm afraid I'm not knowledgeable about these so some research by you will be required! Google "I2C extender" for inspiration.
@Roy_Tellason
@Roy_Tellason 4 роки тому
@@RalphBacon I did a quick search and came across this page: www.hackster.io/chipmc/extend-the-reach-of-your-i2c-sensor-simply-and-inexpensively-ea6b53 which has a rather interesting treatment of that subject. What an amazing little device!
@taranagnew436
@taranagnew436 5 років тому
What is the uno type board you have the nano plugged into?
@RalphBacon
@RalphBacon 5 років тому
The Nano is plugged into a "Nano Development Board" sometimes called a "Nano Expansion Board". It's almost impossible to use the Nano otherwise! See www.banggood.com/328P-Multifunction-Expansion-Board-V3_0-For-Arduino-NANO-UNO-p-955701.html?p=FQ040729393382015118&
@MarvelousMixinMiguel
@MarvelousMixinMiguel 2 роки тому
I know this video has been up for some time. Im just starting to get into radio, microcontrollers etc. Does anyone have a copy of pulse view for Windows they could provide me with a copy. The main page is not available. Does anyone know why it's down? Thank you,
@RalphBacon
@RalphBacon 2 роки тому
There's a copy of PulseView (in case Sigrok's server ever goes down) in my GitHub: github.com/RalphBacon/Logic-Analyser
@MarvelousMixinMiguel
@MarvelousMixinMiguel 2 роки тому
Thank you very much Ralph. I will start using it tomorrow.
@mannhansen9337
@mannhansen9337 4 роки тому
When you buy I2C breakout boards on Ebay many of them have already pull up resistors installed. 4.7 k or 10 k ohm. Check with your multi meter. You also find very cheap logic analyzer clones on Ebay. Legal or not ? I don't know but they work fine.
@RalphBacon
@RalphBacon 4 роки тому
Every device sold on eBay and elsewhere has the pullup resistors already in place, which means if you put half a dozen devices on I2C it will stop working. Ideally, the first device should have the pull up resistors and all others have them removed - but then they will not work by themselves. Doh!
@johnstephenson2891
@johnstephenson2891 4 роки тому
@@RalphBacon Anyone old enough to remember RS422? Used many devices BEFORE I2C or USB! lol
@Graham1904
@Graham1904 4 роки тому
How many days in your week. If Sunday is zero then how come Tuesday is day 3 :)
@RalphBacon
@RalphBacon 4 роки тому
There are obviously 8 days in a week, Graham (even the Beatles sang a song about this) because you forgot 'someday'. As in, _someday_ I'll tour the world. Or give up work, _someday_ - makes sense, right?
@embohansen1203
@embohansen1203 6 років тому
ZX81???? What is up with that? I may be an EagleEyes too... At 07 min 12 secs: "Can be installed on most platforms Windows, Mac, Linux, ZX81" I had an ZX81 once with the 16 KB RAM expansion (sold and replaced by a ZX Spectrum), but...
@RalphBacon
@RalphBacon 6 років тому
Thank goodness someone spotted (and commented on) that little joke I had there. I repaired my boss' ZX81 (might have been a ZX80) back in the 80s, he was well impressed. It too had a very wobbly RAM expansion pack that would crash the machine as soon as not. Consider yourself awarded an honorary "Eagle Eyes" badge, Embo. I shall have to put more of these little quips into my videos...
@nilsskansar416
@nilsskansar416 5 років тому
What about KIM-1 ? Not many here remebering that one.
@tablatronix
@tablatronix 6 років тому
Is this the same as the abundant ebay $7 ones ?
@RalphBacon
@RalphBacon 6 років тому
Good question, tablatronix. And the definitive answer is: maybe. Look at the other comments here and you'll see similar observations, but whether they are identical internally is another question. As long as the eBay (or Banggood, AliExpress, GearBest et al) item uses the same open source software that I'm using here then I'm assuming it will work. Some use the Saleae software (naughty, as that is not open source) *and* can use the sigrok software too. Try and find a seller that seems knowledgeable about this product rather than just a box shifter as their information may be more reliable. If you get one and it works let us all know!
@nilsskansar416
@nilsskansar416 5 років тому
Yes, with Salae original software. So cheap that I purchased 2. These modules are very sensistive to noise from the USB power lines. Giving false pulses on the screen. Use extra caps 100 nF and 10 uF across +V and GND. Or take power from a rechargeable battery pack. 4X 1.25 V.
@jstro-hobbytech
@jstro-hobbytech 11 місяців тому
I want to decode the 1 wire serial for rc hobby protocols haha
@RalphBacon
@RalphBacon 10 місяців тому
Good luck with your project!
@jstro-hobbytech
@jstro-hobbytech 10 місяців тому
@@RalphBacon I'm doing it to save money on a business venture I've been studying the last year or so. Since people I know who I offer very cheap investment opportunities to only see my mental ilness I need to do it myself. What's funny too Ralph is the person is guaranteed to get their money back as it has to do with a non maker hobby we share and it's money they would spend anyway. I've lost almost 1k already because a family member wouldn't cough up 300 because I had bought top of the line parts for their build and they only had to buy a body and transceiver. If people didn't want to do something when asked they should just say haha. Normally I'd say something but it's my father in law so I eat the expense and make a business contact who I had to burn as they were commissioned to build a 72 chev pickup body. It's an rc park for crawlers (the most expensive), and other types. I made it up to the guy but I'd never ask a favor of him again.
@arletpaz8010
@arletpaz8010 3 роки тому
lmfaol .............. he said "next day not a sausage" 🤪 Okayyyyyy Mister*
@RalphBacon
@RalphBacon 3 роки тому
A true British expression!
@arletpaz8010
@arletpaz8010 3 роки тому
@@RalphBacon i HAVE to visit this side of the world!
@Od3o_ela_sabil_rabek
@Od3o_ela_sabil_rabek 4 роки тому
22:50 Start condition
@RalphBacon
@RalphBacon 4 роки тому
Ah ha! That makes sense! Thanks for letting me know.
@Od3o_ela_sabil_rabek
@Od3o_ela_sabil_rabek 4 роки тому
​@@RalphBacon you welcome, thank you too for very nice video :)
@fishntools
@fishntools 6 років тому
Wish you translated the data all the way down to alpha numeric
@RalphBacon
@RalphBacon 6 років тому
Do you mean, Michael, that I should have chosen some alphanumeric characters, like "A" and "T" instead of just using numeric ones? If so, it was time that beat us all. I was originally intending to use an LED display but it was too complicated to see what was going on (for a beginner) so I eventually chose the simplest thing I could find - that RTC module. Perhaps we'll explore a more in-depth version of I2C or SPI in a future video, where I don't spend half the video explaining what we're going to do! Good point you raise, thanks for posting.
@fishntools
@fishntools 6 років тому
Yes, 2-wire LED comm analysis would be an excellent example. Appreciate your videos and the clarity they offer, looking forward to more.
@george8bitsworth
@george8bitsworth 6 років тому
What would be the I2C part that interfaces with an LED?
@fishntools
@fishntools 6 років тому
My bad...LCD
@george8bitsworth
@george8bitsworth 6 років тому
That makes more sense. I've got several LCD displays interfaced to Arduinos via I2C.
@AliG.G
@AliG.G 4 роки тому
you need a usb3.0 hub mate
@RalphBacon
@RalphBacon 4 роки тому
I've now got two of them, Ali G, and very fast they are too. Who knew!?
@ronen124
@ronen124 6 років тому
27:58 the month is 12... on November? (-:
@RalphBacon
@RalphBacon 6 років тому
Yes, I picked a random future date, Ronen, not knowing when I was going to release this video. At least it will stay current for another month (at time of writing this, anyway!). I wondered if anyone would spot that... silly question I know. Your new user name is Ronen "Eagle eyes" Shemesh.
@ronen124
@ronen124 6 років тому
hi Ralph, first a big thanks for this informative video, I bought myself a set of this cheap and efficient set of logic analyzer at ebay so it might help me in the future even though I think I have such an option at my Rigol 1054z but I haven't yet explored, part of it is because I jumped into a much bigger project (for me) trying to design and build a CDI to my old bike which is dismantled at the moment.. As to my comment: I checked a few times before I commented if its possible that we are somehow on December at some part of the world, at least now I know that this date was carefully picked..(-: generally I do check the upload date that most of the clips I watch but what matters most is whether the info is new to me, had I encountered it before, was it helping or has an added value. I love your videos I can tell for sure that they sit comfortably at one of the the categories I mentioned above. please keep with sharing the good stuff, as one of your followers I will be waiting..
@RalphBacon
@RalphBacon 6 років тому
Thanks for your support EagleEyes, and good luck with your CDI project [en.wikipedia.org/wiki/CDI ] even though I don't know what that is but probably should do!
@ronen124
@ronen124 6 років тому
I do not like so much that nickname you gave me only because I made a polite remark on a small error or misunderstanding I found during your video, still, I prefer not to respond by calling you by names mainly because you are much older than me. If there is any other reason for that kindly tell it to me.. there is the what connect CDI abbreviation to a motorcycle(bike) related to our small electronic forum/comments: en.wikipedia.org/wiki/Capacitor_discharge_ignition
@RalphBacon
@RalphBacon 6 років тому
I most certainly did not mean to offend you, Ronen, it was a mark of respect to you that you had spotted something in my video - you have the sharp eyes of an eagle. It was purely a light-hearted (but respectful) name given to you as is the custom in the UK and US to show appreciation of someone. However, from now on I will refer to you again as Ronen. No offense was intended, I think this is a cultural misunderstanding as here you would be pleased to have been given that name, Ronen. I hope this has cleared up this misunderstanding? Now tell me about your "CDI" project.
@jstro-hobbytech
@jstro-hobbytech 11 місяців тому
I have a scope I paid way too much for with a 16 channel one
@RalphBacon
@RalphBacon 10 місяців тому
16 channels are better than none, so I'm sure you can get it to work.
@jstro-hobbytech
@jstro-hobbytech 10 місяців тому
@RalphBacon indeed sir. I plan to decode the 1 wire serial bus for certain rc brands to control things with the spare channels.
@jstro-hobbytech
@jstro-hobbytech 10 місяців тому
I already said that. I'm sorry man I just woke up haha
@JerryEricsson
@JerryEricsson 4 роки тому
I know you are into the ESP32 devices, I was just wondering if you have run into this one: www.banggood.com/LILYGO-TTGO-T8-V1_1-ESP32-4MB-PSRAM-TF-CARD-3D-ANTENNA-WiFi-buletooth-Module-p-1296709.html?rmmds=myorder&cur_warehouse=CN I ordered one to use in a special emulator build, the reason for getting it was the 4 meg extra RAM chip on-board. This chip can be removed and replaced with a readily available 16 meg ram chip then the device can run a bunch of emulators, including the Nintendo, Gameboy and more. I guess I have been into emulators since the first ones came out years ago, you see I couldn't afford all the new machines, but I always tried to have a powerful enough computer so I could run emulators and play the same games my friends were playing on their machines, on my computer. The urge to build my own emulator machine is strong and I plan on doing just that once I sell a few items off on Ebay so I can have more funds to buy the rest of the parts. I know I have the proper color screen stashed away, and even have a joystick I can use in place of the buttons that are recommended in the emulator build.
@RalphBacon
@RalphBacon 4 роки тому
Sounds like a great project you have in mind there, Jerry, but you do know that "her indoors" will demand half your gains from eBay, right? Or is that just my wife that does that? Regarding that device I don't know if I have one but do be careful with the "charging cable" to the LiPO, it's too easy to get them the wrong way round or the cables in the supplied header are back to front. Double check!
@JerryEricsson
@JerryEricsson 4 роки тому
@@RalphBaconWell a few years back, when I was a regular seller on Ebay, well a few packages a week at any rate, my good wife of 50 years pretty much stayed out of it, so long as no money transfered into our bank account, and none came out of it. If, however I used a credit card, or bank transfer, then it had to be paid back on my next sale. Things have changed since then, though so I am not all to sure how it would go now days, should I go ahead with my plans.
@RalphBacon
@RalphBacon 4 роки тому
Get a PayPal account. Then it all goes into there and out of there and no-one is the wiser!
@raymondheath7668
@raymondheath7668 6 років тому
So basically a little more complicated than a 20ma current loop....;)
@RalphBacon
@RalphBacon 6 років тому
Well, just a little, Raymond, maybe! But still simple enough for us to decipher very easily using this nifty piece of (cheap) equipment. You got one? Getting one? Don't want one?
@nilsskansar416
@nilsskansar416 5 років тому
But smart. Invented by Philips to save wires onboard Audio equipment between modules. Around 1980 ?
@MD0MDI
@MD0MDI 5 років тому
Doesn’t ship to U.K. islands.... bugger
@RalphBacon
@RalphBacon 5 років тому
That's a shame. It might be worth ringing them up and negotiating a delivery charge. You never know. Or you may find the same item on eBay (a reseller) who will sell it to the UK islands. Or get it sent to someone on the mainland who can then forward it to you (at your expense, of course!). I'm assuming that "UK islands" is off the coast of Scotland but you could mean the Falkland Islands for all I know which could be a different thing altogether... Just suggestin'!
@whitefields5595
@whitefields5595 6 років тому
At 19:18 you say that the LA connection is to earth . You then say that earth is 'Old School Speak for ground. It isn't. I know you know the difference between earth, ground, 0 Volts, floating power supplies, dual rails, ground offsets, ground planes, etc., and the various forms of equi-potential around zero. I like your channel because of your off-hand remarks and your ability to only include the essentials, but this particular one is risky if you get ground and earth potentials mixed up. Many who view your excellent channel may not seek out the real significance of earth and ground. If the Arduinites hook up to mains power for their projects thinking that earth and ground are coterminous may be in for a shock. The men who wear the thick gloves differentiate between 'live' and 'line' with a preference for the latter and uses 'neutral' rather than 'ground' even though neutral is eventually connected to earth at the substation. Earth and neutral wires co-exist in a 3 pin plug so that the earth wire can be the low impedance non-load carrying conductor to earth for safety while the neutral carries the load, eventually to earth. This subject is worthy of a video by you, although there are other videos floating around that you may wish to point to such as EEVBLOG "How not to blow up an oscilloscope". ukposts.info/have/v-deo/sJF2gKd4pmqczIU.html and others by John Ward.
@RalphBacon
@RalphBacon 6 років тому
You've won the prize for the most re-edited post in the history of this channel! I'm still sitting on the naughty step as I was unclear about ground and earth (can be the same) and I even included this very post as part of a future video about encapsulated 5v mains supplies (investigating whether they are they safe). What you say is very much in line with my understanding, so stay tuned for the video results... and can I get off the naughty step now to finish that video, it's most uncomfortable here, heh heh?
@whitefields5595
@whitefields5595 6 років тому
‘Ground is not earth’ please write it out 100 times on the naughty step. The terms can only be interchanged by gardeners, builders and parachutists. The term 'ground' is misused, as is 'negative' on a battery as it isn’t negative to anything, it is merely of lower potential than the cathode. Ground is a region of equipotential that can be any (signed) voltage including earth, but earth should not be used to describe ground in the electrical world. To make the point, when you chop open the potted 240VAC (isolated) / 5VDC converter, make a circuit on the secondary side with it’s ground connected through a diode. You'll have a 5V DC difference in potential in your circuit, but your ground will be elevated by the diode’s forward voltage making your secondary voltage relative to ground = (5 +Vf ). Your 5V DC circuit is isolated from the mains and Earth and can take on any value depending on where it is grounded. This is a useful way of getting odd in-between values from floating power supplies such as batteries ….. but also blow kit up if struck by lightning. Now, turn your isolating transformer into one that is referenced to planet Earth by adding a wire from the AC neutral to the earth on your house mains. Nothing will happen. However when you ‘earth reference’ the ground on the 5V circuit to the new earth wire on the mains side everything gets real to Mother Earth as she has infinitely low impedence. If your mains RCD does not trip (or even better if it does?), you will demonstrate the difference between Earth, Ground, Earth Referencing, Potential Difference, Floating Voltages, Common Return Path and Isolating Transformers. You may also cause folk to question if 2 wire ‘double insulated’ hair driers are a good idea. With your back-to-basics skills in visual presentation and verbal explanation you will then keep the magic smoke inside many projects. You may also save some lives. ======================================================== For an encore, use your body as the (intended) earth reference for a critique of one of those lethal neon ‘Electrician’s’ electrical screwdrivers that I think I glimpsed on your desk. Then stand on an insulator and see the neon go out and tell Mrs Bacon to hold the wire 'cos "its safe". Deadly things
@RalphBacon
@RalphBacon 6 років тому
Well, a circuit's ground may not (necessarily) be Earth, but Earth is always Ground, I think you'll find (when connected electrically to your circuit, of course). I'm pretty sure I understand the difference but you'll have to wait for my video to see whether we are singing from the same hymn sheet! You are obviously passionate about this subject so I'll appreciate your feedback on that video (when it finally appears). I do, however, take issue with your assertion that Mother Earth has infinitely low impedance - it's the relatively high impedance of Earth grounding rods (up to 50 ohms or even more) that make the use of domestic electrical TT supplies relatively more dangerous than TN-S. In fact, the old telegraphers of the Wild West had terrible problems during the summer when the ground was so dry that the signal had great difficulty getting through (they used Earth grounding and a single wire to send the signal). Eventually, they switched to a two-wire system and all was well from then on. Until radio arrived, anyway. Anyway, I ramble on, so back to the video storyboard, and thanks again for your continued posts.
@whitefields5595
@whitefields5595 6 років тому
Tautology. Joining wires = same potential. The earth wire is a non-load carrying conductor for safety. Neutral is the path to earth made at the substation. Put an Arduino to mains earth. The RCD will trip at < at 30mA as it detects the current to earth. Ergo, earth can’t always be ground. Correction. ME has a (very) low impedance and infinite ability to sink charge. Earth loop (UK) should be < 5 Ohms. Only Boonies have >50 Ohms. QED, but I give up.
@trollobite1629
@trollobite1629 4 роки тому
@@whitefields5595 "...Battery isn't negative..." Actually, it is, it's all relative because ground can be whatever you want it to be and depends on your reference point. EG telco companies connect the positive side of a series of 4 batteries to Earth which means relative to Earth the negative terminal is now at negative 48 Volts. Put your negative terminal of your DVM on to the positive terminal of a battery then measure the voltage on the negative terminal and your display will show a negative voltage.
#98 Telephone Dialler ☎️ and Hardware Debounce Solution (retro)
24:23
Ralph S Bacon
Переглядів 4,5 тис.
PROTOCOLS: UART - I2C - SPI - Serial communications #001
11:58
Electronoobs
Переглядів 1,3 млн
Extracting Firmware from Embedded Devices (SPI NOR Flash) ⚡
18:41
Flashback Team
Переглядів 502 тис.
Setting up a cheap Logic Analyser (CY7C68013A) in Windows
7:11
Marina McFab
Переглядів 16 тис.
VTC P.36 - Logic Done!
27:21
Usagi Electric
Переглядів 41 тис.
#148 TCA9548A I2C MULTIPLEXER (& Voltage Shifter)
38:00
Ralph S Bacon
Переглядів 25 тис.
Is Adam Savage Still an Atheist?
8:16
Adam Savage’s Tested
Переглядів 264 тис.
Instrument Basics:  Logic Analyzer - Workbench Wednesdays
12:08
element14 presents
Переглядів 79 тис.
Reading THE BMW CAN BUS USB to CAN: CUSTOM CLUSTER PLANS
15:38
Zero To 60
Переглядів 27 тис.
[011] USB Debugging with sigrok
58:37
OpenTechLab
Переглядів 51 тис.
[009] DSLogic Logic Analyzer Review and Teardown
46:09
OpenTechLab
Переглядів 87 тис.
How about that uh?😎 #sneakers #airpods
0:13
Side Sphere
Переглядів 8 млн
Индуктивность и дроссель.
1:00
Hi Dev! – Электроника
Переглядів 121 тис.
Купите ЭТОТ БЮДЖЕТНИК вместо флагманов от Samsung, Xiaomi и Apple!
13:03
Thebox - о технике и гаджетах
Переглядів 40 тис.