Sorry, could you please give me more context and timestamp from the video above so that I can understand what you mean by "clock mode". If you mean the I2C protocol's SCL pin, then it is a synchronous clock by its definition: en.wikipedia.org/wiki/I%C2%B2C Also, I would say check with the datasheet of the sensor.
@@sayanee Thank you for your reply. I am talking about capture rate. I was wondering if you use timing or state acquisition. I have problem with adjusting capture rate so I asked.
@@ismaeelm7091 Uh yes, good question! The Saleae Logic Analyser's software Logic provides a list of sampling rate options. To be honest, I start with one of the options and I play around 🤷🏻♀️I do check with the datasheet as well to know approximately which sampling rate to choose in line with Nyquist theorem and Saleae recommends 4 times. Do check this link as well: support.saleae.com/faq/technical-faq/what-sample-rate-is-required Also another note on Nyquist and their recommendation on 4 times: downloads.saleae.com/Saleae+Users+Guide.pdf "Keep in mind that in order to successfully capture a signal, you must sample faster than that signal. That is due to the nature of asynchronous sampling and is described by the Nyquist-Shannon sampling theorem. With our products, in order to accurately sample a digital signal, you must sample at least 4 times faster than that signal." Hope this helps!!
Sayanee, thank you so much for this video! I spent a bunch of time googling for how to do this and just got confused. Your explanation was very good - really easy to follow, and reproduce. Now I know how to use my logic analyzer to decode I2C signals! Yay!
These videos are really well done. They incorporate lots and lots of useful, actionable information and the explanations are very clear. Plus, the pacing is spot on. Showing your audience how to work through issues they may encounter in the real world is extremely valuable and much appreciated.
Woww! Que buen video me encanta la forma en que explicás cada tema, tendrías que tener más subs sin dudas. Thanks a lot for your videos! I love all of them. Saludos desde Bs As, Argentina.
@Landyn Colton Looks like Instagram already patched the brute force exploit so they suggest you use phishing and social engineering to get the password. You don't need software for that lol
Can i copy the rx tx signals For example a control panel control a drive using rx tx signals When a drive or pannel are faulty I trace the signal and use another drive or pannel
What would you recommend when using UART/I2C sensors with an industrial PLC ? Is it best/easier to go with a converter or use a RS-232/485 and program the communication protocol to fit with it ?
I have never used an industrial PLC. But for any such integration, I would always reach out to the manufacturer and ask them for their recommendation based on the specific use case.
Great video. One question. Can you use the same computer to operate the Arduino and also operate the logic analyzer at the same time? That would take two USB ports. How would that work? Thank you.
Yes, I used up all the laptop's USB port for Arduino and the logic analyzer. In fact, during the video recording, I also needed 2 more USB ports for the web camera and the microphone, so I had to use an external USB hub to connect 4 devices to my 2015 MacBook.
Wow the DHT11 one is grt . Well I would like to have your suggestion on one thing. For checking signals of different protocol say UART , SPI, I2C ,ADC TIMERS , PWM waves , GPIO Pins switching high and low of order ms ,us , ns.And to check clock frequency of MCU So what equipment should i go for oscilloscope? Logic analyser?. Which will suit by application, According to cheapness.
I guess you can't really compare the functionalities of an oscilloscope vs a logic analyzer. Here is a good summary: articles.saleae.com/logic-analyzers/logic-analyzer-vs.-oscilloscope#differences I have seen fairly good "cheap" logic analyzers, but good oscilloscopes are expensive.
I agree that good oscilloscopes are expensive. But I feel it’s important to note that “good” is all relative. If you find secondhand equipment acceptable, there are lots of fast oscilloscopes available. About six months ago, I picked up a 300 MHz Tektronix oscilloscope for under 100 USD. That’s less than even the student pricing on a Sales’s logic analyzers. A logic analyzer is a fantastic tool, but the oscilloscope can do most of what do you logic analyzer does - it’s just slower, because you will need to decode the protocols by hand. (Not difficult - just potentially time consuming. But, you will learn from the exercise.) Newer, higher-end oscilloscopes can do this decoding automatically, but their prices can go from high to astronomical. If you are just trying to understand what’s going wrong with a simple system, a low-cost oscilloscope can be a great option. Very often, the problems with digital systems are simple ones, and often they are actually in the analog domain. For example, a common mistake is to use an improper pull up resistor for the transmission speed, or to accidentally leave one out entirely. In this situation, the inexpensive oscilloscope will probably provide better information than the more expensive logic analyzer. And, once the problem is resolved, the digital parts of the system will probably work as intended. That’s not true in all cases, of course. But, in my experience, analog problems represent a slight majority of the real-world issues in “digital” systems. Hope that all helps with your decision. Edit: I should have mentioned that handheld oscilloscope can be rather inexpensive as well - perhaps as low as 125 USD. Just take their reported speeds with a grain of salt - consider dividing the reported sampling rate by 10X. So, a cheap, handheld “100 MHz” scope might be reliable at ~10 MHz, when used with digital signals. They will be more successful with slower-changing analog signals, but that wasn’t your original question.
Uh! LCDs are usually SPI, which is not a standardized protocol. I'm sure you can read the data, but you will probably need the specific LCD's datasheet to decode the signals.
Congratulations, Sayanee ! I'm trying to use a logic analyzer for the first time. It is for read a unknown logic protocol, which is used by Fujitsu Split VAC(Air Conditioners). The clock signal and DATA are in the AC line wave, 60HZ. I guess the data signal should read exactly at the middle of the high clock signal. I would like to ask you, please: Is there a setting to point and read the data exactly at the middle of high state of the clock signal ? Thank you.
I'm not so sure actually, especially since this is an unknown protocol. I am guessing you can write a custom protocol analyzer and state there to read the data exactly at the middle of the high state of the clock signal. Saleae is continuously updating its API for this. Check here for writing a custom protocol analyzer: support.saleae.com/saleae-api-and-sdk/protocol-analyzer-sdk And I would highly recommend the forum to ask these questions: discuss.saleae.com/ And if you are using other logic analyzers, it will depend on that model and I wouldn't know. For the purpose of aircon IR signals, I would also recommend checking www.analysir.com/blog/ Sorry, I couldn't provide the exact answer, but hope the above links will give you some clue!! Hope you find a way to decode it.
Hello, @@sayanee ! Thank you by attention and hints. They are very usefull. I'm trying to decode and understand the communication between external and internal units of a Split model Air Conditioner. It is not about the InfraRed signals of the remote controller. It is about two Microcontrollers on two PCB's communicating. There are 2 units in a Split Air Conditioner: Internal unit, where is the evaporator unit. External unit, where is a compressor motor and condensator unit. Both of them, have PCB's controlling each step, temperature, sensors, valve and other things. These 2 units change informtions and commands using a third wire among the voltage AC lines. This third wire is connected on the PCB, which has a kind of modem that modulates the bits received from a microcontroller over the 220V AC wave(please, see these signals on my video ua-cam.com/video/HDqMhQzB0HU/v-deo.html ). Thank you, again. You are the best !
Hi Sayanee , I looked into your videos to understand Logic Analyzer and its features. Very informative and well explained. I have query , did you get a chance to use Logic Analyzers with CC111x series of usb dongles from TI. I am trying similar with Saleae , but till not did not able to capture anything .
Nope, I never used those chip series. Maybe check with their documentation for the supported protocols? support.saleae.com/protocol-analyzers/supported-protocols My best bet would be to drop a question on their forum: discuss.saleae.com/ Hope this helps!
@@sayanee Thankyou for your prompt reply. One more query did you get a chance to work on ERT Protocol or similar Actually we need to use CC1111 usb dongle to capture ERT Gas meter data . Which we are still not able to capture so tried to use saleae but still not any progress .en.wikipedia.org/wiki/Encoder_receiver_transmitter Pls suggest any forum if you know. Thanks alot once again!! Appreciate your time and efforts
@@rohitjindal5074 Nope, I did not have the chance to work on them. From my previous experiences in working with industrial meters (E.g. gas meters that you mentioned), it's best to contact the vendor for their proprietary protocols. Sometimes they might help, sometimes no luck, but at least the manufacturer/ vendors are the source of information. All the best in cracking the protocol!
Seriously your explanation is just great I just love the your video thank you .one help I want can you make a video that how we can decode same date using Arduino instead of graph can we get the character or decimal date at the serial monitor please help out mam
very nice.. now how would be an ez-way to set the arduino up for " modbus rtu rs485" and do the test with the Saleae logic analyzer. also, can a test message be sent to the arduino from the Saleae using simulated read-write registers like: 400001, 300001, 100001, 000001, etc ? thank you so much..:) this would be great for IoT bench testing...:)
I have neither used MODBUS RTU nor an Arduino with it :) I have used MODBUS TCP, but on a microprocessor running the full operating system. It seems like there is an Arduino MODBUS library with RTU: www.arduino.cc/en/ArduinoModbus/ArduinoModbus And it seems like Saleae also supports it support.saleae.com/protocol-analyzers/analyzer-user-guides/decode-rs-232-rs-485-and-rs-422, but you might need to also write a custom high level analyzer with Python.
Hopefully, you have access to your school's lab that I used to during my engineering school days. I'm unsure how's that with the pandemic situation now :( Either way, you might be able to buy cheaper non-branded logic analyzers also.
I bought one made in China way cheaper, Did I like it?...no, but a was forced to do it. If you guys bring something in the middle range prices would it be a better business for everyone
How do you choose the clock mode? I mean, do you use asynchronous or synchronous clock?
Sorry, could you please give me more context and timestamp from the video above so that I can understand what you mean by "clock mode".
If you mean the I2C protocol's SCL pin, then it is a synchronous clock by its definition: en.wikipedia.org/wiki/I%C2%B2C
Also, I would say check with the datasheet of the sensor.
@@sayanee Thank you for your reply. I am talking about capture rate. I was wondering if you use timing or state acquisition. I have problem with adjusting capture rate so I asked.
@@ismaeelm7091 Uh yes, good question!
The Saleae Logic Analyser's software Logic provides a list of sampling rate options. To be honest, I start with one of the options and I play around 🤷🏻♀️I do check with the datasheet as well to know approximately which sampling rate to choose in line with Nyquist theorem and Saleae recommends 4 times.
Do check this link as well: support.saleae.com/faq/technical-faq/what-sample-rate-is-required
Also another note on Nyquist and their recommendation on 4 times: downloads.saleae.com/Saleae+Users+Guide.pdf
"Keep in mind that in order to successfully capture a signal, you must sample faster than that signal. That is due to the nature of asynchronous sampling and is described by the Nyquist-Shannon sampling theorem. With our products, in order to accurately sample a digital signal, you must sample at least 4 times faster than that signal."
Hope this helps!!
Fantastic teacher.. subscribing
Sayanee, thank you so much for this video! I spent a bunch of time googling for how to do this and just got confused. Your explanation was very good - really easy to follow, and reproduce. Now I know how to use my logic analyzer to decode I2C signals! Yay!
Very clear and informative. Much easier to follow than most other coverages of this topic on UA-cam !! Thanks !!
Getting my first logic analyzer this Friday. Thank you for your clear tutorial on how to use it and decode data! Best tutorial on UA-cam!
well? how's it going?
This was a really good introduction to using a logic analyzer, thank you!
These videos are really well done. They incorporate lots and lots of useful, actionable information and the explanations are very clear. Plus, the pacing is spot on. Showing your audience how to work through issues they may encounter in the real world is extremely valuable and much appreciated.
I bought one of these cheap $10 logic analyzer and didn't know how to proceed. You explained it very well and I'm now up and running. Thank you!
Why are your videos so great?! 🙂 I just subscribed... keep rockin' your content!
wow... I'm a Mechanical engineer and I found this really interesting!! at least I see the signal!!
Woww! Que buen video me encanta la forma en que explicás cada tema, tendrías que tener más subs sin dudas. Thanks a lot for your videos! I love all of them. Saludos desde Bs As, Argentina.
Great introduction to Saleae Logic. Thank you.
Oh my gosh this was awesome! Thank you so much! Teach us more of the magical ways of electronics.
@Landyn Colton Looks like Instagram already patched the brute force exploit so they suggest you use phishing and social engineering to get the password. You don't need software for that lol
The explanation and examples are exactly what I was looking for!
nice clear and understandable
Thank you very much
I loved it. Very well explained. Inspiring... I'm going to buy a logic analyzer, thank you very much
Very good explained .Thank you for such as video .succes and a very good new year !
how you can get analog part chanel 0 to show the voltage? please help me
Nice, really helped me get started
I really like the video. It is amazing. Thank you very much!!!
Can you help me how to unlock id code the Renesas M16c with logic analyzer
I have a serial signal (single line) and a clock signal and I want to decode a signal into Hex values, can I decode the serial signal?
Very good
Can u analyz spi by this method???
I need to probe some synchronous serial HDLC data at 9600 baud.
Can i copy the rx tx signals
For example a control panel control a drive using rx tx signals
When a drive or pannel are faulty
I trace the signal and use another drive or pannel
Thanks so much! This video is of great value to me.
What would you recommend when using UART/I2C sensors with an industrial PLC ? Is it best/easier to go with a converter or use a RS-232/485 and program the communication protocol to fit with it ?
I have never used an industrial PLC.
But for any such integration, I would always reach out to the manufacturer and ask them for their recommendation based on the specific use case.
Very informative video. I learn new things about logic analyzer.
Amazingly helpful, thank you!
Nice job teaching. Keep it up!
Subscribed. Very informative and interesting!
Great video. One question. Can you use the same computer to operate the Arduino and also operate the logic analyzer at the same time? That would take two USB ports. How would that work? Thank you.
Yes, I used up all the laptop's USB port for Arduino and the logic analyzer. In fact, during the video recording, I also needed 2 more USB ports for the web camera and the microphone, so I had to use an external USB hub to connect 4 devices to my 2015 MacBook.
@@sayanee Thank you. I am using a Dell running Windows 10. I think that the results should be the same.
Thanks for the class teacher! I'll learn a lot about electronics with your videos, greetings from Managua, Nicaragua, UNI-RUSB university.
Wow the DHT11 one is grt .
Well I would like to have your suggestion on one thing.
For checking signals of different protocol say UART , SPI, I2C ,ADC TIMERS , PWM waves , GPIO Pins switching high and low of order ms ,us , ns.And to check clock frequency of MCU
So what equipment should i go for oscilloscope? Logic analyser?.
Which will suit by application, According to cheapness.
I guess you can't really compare the functionalities of an oscilloscope vs a logic analyzer. Here is a good summary: articles.saleae.com/logic-analyzers/logic-analyzer-vs.-oscilloscope#differences
I have seen fairly good "cheap" logic analyzers, but good oscilloscopes are expensive.
I agree that good oscilloscopes are expensive. But I feel it’s important to note that “good” is all relative. If you find secondhand equipment acceptable, there are lots of fast oscilloscopes available. About six months ago, I picked up a 300 MHz Tektronix oscilloscope for under 100 USD. That’s less than even the student pricing on a Sales’s logic analyzers. A logic analyzer is a fantastic tool, but the oscilloscope can do most of what do you logic analyzer does - it’s just slower, because you will need to decode the protocols by hand. (Not difficult - just potentially time consuming. But, you will learn from the exercise.) Newer, higher-end oscilloscopes can do this decoding automatically, but their prices can go from high to astronomical. If you are just trying to understand what’s going wrong with a simple system, a low-cost oscilloscope can be a great option. Very often, the problems with digital systems are simple ones, and often they are actually in the analog domain. For example, a common mistake is to use an improper pull up resistor for the transmission speed, or to accidentally leave one out entirely. In this situation, the inexpensive oscilloscope will probably provide better information than the more expensive logic analyzer. And, once the problem is resolved, the digital parts of the system will probably work as intended. That’s not true in all cases, of course. But, in my experience, analog problems represent a slight majority of the real-world issues in “digital” systems. Hope that all helps with your decision. Edit: I should have mentioned that handheld oscilloscope can be rather inexpensive as well - perhaps as low as 125 USD. Just take their reported speeds with a grain of salt - consider dividing the reported sampling rate by 10X. So, a cheap, handheld “100 MHz” scope might be reliable at ~10 MHz, when used with digital signals. They will be more successful with slower-changing analog signals, but that wasn’t your original question.
Can we read unknown controller data going to 16x2 lcd going by logic analyser?
Uh! LCDs are usually SPI, which is not a standardized protocol. I'm sure you can read the data, but you will probably need the specific LCD's datasheet to decode the signals.
how do I program the data captured in the logic analyzer into an MCU?
Thanks, very telling!
Congratulations, Sayanee !
I'm trying to use a logic analyzer for the first time. It is for read a unknown logic protocol, which is used by Fujitsu Split VAC(Air Conditioners).
The clock signal and DATA are in the AC line wave, 60HZ.
I guess the data signal should read exactly at the middle of the high clock signal.
I would like to ask you, please:
Is there a setting to point and read the data exactly at the middle of high state of the clock signal ?
Thank you.
I'm not so sure actually, especially since this is an unknown protocol. I am guessing you can write a custom protocol analyzer and state there to read the data exactly at the middle of the high state of the clock signal.
Saleae is continuously updating its API for this.
Check here for writing a custom protocol analyzer: support.saleae.com/saleae-api-and-sdk/protocol-analyzer-sdk
And I would highly recommend the forum to ask these questions: discuss.saleae.com/
And if you are using other logic analyzers, it will depend on that model and I wouldn't know.
For the purpose of aircon IR signals, I would also recommend checking www.analysir.com/blog/
Sorry, I couldn't provide the exact answer, but hope the above links will give you some clue!! Hope you find a way to decode it.
Hello, @@sayanee !
Thank you by attention and hints.
They are very usefull.
I'm trying to decode and understand the communication between external and internal units of a Split model Air Conditioner. It is not about the InfraRed signals of the remote controller. It is about two Microcontrollers on two PCB's communicating.
There are 2 units in a Split Air Conditioner:
Internal unit, where is the evaporator unit.
External unit, where is a compressor motor and condensator unit. Both of them, have PCB's controlling each step, temperature, sensors, valve and other things.
These 2 units change informtions and commands using a third wire among the voltage AC lines. This third wire is connected on the PCB, which has a kind of modem that modulates the bits received from a microcontroller over the 220V AC wave(please, see these signals on my video ua-cam.com/video/HDqMhQzB0HU/v-deo.html ).
Thank you, again.
You are the best !
Thank you so much for this video
Hi Sayanee , I looked into your videos to understand Logic Analyzer and its features. Very informative and well explained.
I have query , did you get a chance to use Logic Analyzers with CC111x series of usb dongles from TI. I am trying similar with Saleae , but till not did not able to capture anything .
Nope, I never used those chip series.
Maybe check with their documentation for the supported protocols? support.saleae.com/protocol-analyzers/supported-protocols
My best bet would be to drop a question on their forum: discuss.saleae.com/
Hope this helps!
@@sayanee Thankyou for your prompt reply.
One more query did you get a chance to work on ERT Protocol or similar Actually we need to use CC1111 usb dongle to capture ERT Gas meter data . Which we are still not able to capture so tried to use saleae but still not any progress
.en.wikipedia.org/wiki/Encoder_receiver_transmitter
Pls suggest any forum if you know.
Thanks alot once again!! Appreciate your time and efforts
@@rohitjindal5074 Nope, I did not have the chance to work on them.
From my previous experiences in working with industrial meters (E.g. gas meters that you mentioned), it's best to contact the vendor for their proprietary protocols. Sometimes they might help, sometimes no luck, but at least the manufacturer/ vendors are the source of information.
All the best in cracking the protocol!
@@sayanee Thankyou :)
What if UART data using crc and incoder how to read data ... is any one can read this data ??
Seriously your explanation is just great I just love the your video thank you .one help I want can you make a video that how we can decode same date using Arduino instead of graph can we get the character or decimal date at the serial monitor please help out mam
Can I Analyse CAN Protocol for this?
Seems like it: support.saleae.com/protocol-analyzers/analyzer-user-guides/using-can
very nice.. now how would be an ez-way to set the arduino up for " modbus rtu rs485" and do the test with the Saleae logic analyzer. also, can a test message be sent to the arduino from the Saleae using simulated read-write registers like: 400001, 300001, 100001, 000001, etc ? thank you so much..:) this would be great for IoT bench testing...:)
I have neither used MODBUS RTU nor an Arduino with it :) I have used MODBUS TCP, but on a microprocessor running the full operating system.
It seems like there is an Arduino MODBUS library with RTU: www.arduino.cc/en/ArduinoModbus/ArduinoModbus
And it seems like Saleae also supports it support.saleae.com/protocol-analyzers/analyzer-user-guides/decode-rs-232-rs-485-and-rs-422, but you might need to also write a custom high level analyzer with Python.
@@sayanee thank you i will read this information. modbus is great for industrial and iot hobby projects. 😃
Great job!
That's great and useful. Thanks a lot.
Hi That is awesome
Can you do RS 485 modbus communication decode , On UA-cam there is no such video
I am sure you can do it
Thanks
Hey.. you are amazing... thank you =)
I'm going to have to dust off my logic analyzer for a work issue today. Ugh... Wish me luck.
So.. next time video about "Saleae SDK" custom protocol descriptor...?
I made a video later on about Saleae's custom protocol analyzer: ua-cam.com/video/P2z-iwrrVWU/v-deo.html
Do you mean the same or something else?
can you make video on protocol analyzer please it is my request ,it is helpful for many your subscribers please ,make it fast thanks and regards
Amazing
excellent explanation !!! but unfortunately, the hardware is still too expensive for a student!
Hopefully, you have access to your school's lab that I used to during my engineering school days. I'm unsure how's that with the pandemic situation now :(
Either way, you might be able to buy cheaper non-branded logic analyzers also.
I bought one made in China way cheaper, Did I like it?...no, but a was forced to do it. If you guys bring something in the middle range prices would it be a better business for everyone
Good~
Wow!!!!
hacking for childrens
You deserve 0 dislike .