# Arduino exploration along with Digital Oscilloscope

**URL:** <https://forum.arduino.cc/t/arduino-exploration-along-with-digital-oscilloscope/1003966>\
**Category:** General Electronics\
**Created:** [June 17, 2022, 6:42pm UTC](https://forum.arduino.cc/t/arduino-exploration-along-with-digital-oscilloscope/1003966 "2022-06-17T18:42:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![LarryD](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/larryd/32/215550_2.png) [@LarryD](https://forum.arduino.cc/u/LarryD)\
**Post date:** [June 17, 2022, 6:58pm UTC](https://forum.arduino.cc/t/arduino-exploration-along-with-digital-oscilloscope/1003966/2 "2022-06-17T18:58:31Z")

</div>

> [@Share tips you have come across](https://forum.arduino.cc/t/share-tips-you-have-come-across/428745/982):
>
> This post will be used as a repository for advanced electronic videos. PCB STUFF [[Watch How a PCB Layout Change Makes Big Difference - with Eric Bogatin (Ground bounce)] ](https://www.youtube.com/watch?v=Fj9M2CK2cX0)[[Eric Bogatin on Breaking Bad Habits in PCB Design - AltiumLive Keynote] ](https://www.youtube.com/watch?v=DIMIzKRmync)[["You must Unlearn what You have Learned"] ](https://www.youtube.com/watch?v=y4REmZlE7Jg)[[What Every PCB Designer Should Know - Return Current Path (with Eric Bogatin)] ](https://www.youtube.com/watch?v=icRzEZF3eZo) MOSFET stuff [[Measuring a MOSFET’s Miller Plateau - Workbe…](https://www.youtube.com/watch?v=bw_ZIye2j64)

> [@Share tips you have come across](https://forum.arduino.cc/t/share-tips-you-have-come-across/428745/459):
>
> If you have access to a Logic Analyzer or a Storage Oscilloscope, you can use them to time events when troubleshooting your code. A write to pin D13 on the Arduino using the PINB command, toggles that pin’s state. Toggle: if the pin was ON it goes OFF, if it was OFF it goes ON. examples: PINB = 0x20 // Toggle D13 ATMEGA 328 PINB = 0x80 // Toggle D13 ATMEGA 1284 or the ATMEGA 2560 Having two of these commands in a row gives a pulse of ~62.5ns (nano seconds) for 16Mhz clocks. Creating a pul…

> [@Share tips you have come across](https://forum.arduino.cc/t/share-tips-you-have-come-across/428745/968):
>
> Further to post #459 An oscilloscope can be a valuable tool when tracking down problems in your Arduino projects. We need to trigger the scope at the right time before signal analysis can proceed. Code to produce a pulse of ~63ns can be inserted at an appropriate location in your existing sketch. The scope can then use this pulse to trigger the display. Below are Debugging Macros to control output pins for diagnostics. Also included are some useful Port Manipulation macros that you can u…

> [@Share tips you have come across](https://forum.arduino.cc/t/share-tips-you-have-come-across/428745/971):
>
> A few weeks back I used the following technique to troubleshoot a software issue. Many here have done similar. The following discussion might help new users. • If others can add to this discussion please do so. • New users should also remember, using Serial.print() is still a valid way to troubleshoot many/most problems. You will need to have either a digital oscilloscope or a logic analyzer. Images seen below were made on a 350 MHz Rigol oscilloscope; however, a lower band width digital …

---

_[View the full topic](https://forum.arduino.cc/t/arduino-exploration-along-with-digital-oscilloscope/1003966)._
