Jump to content

siatran

Members
  • Posts

    8
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

siatran's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. Hi @attila, Thank you very much for taking the time to answer my question. Are there any additional configurations I can do to increase the accuracy, or are the waveforms I shown in the previous forum post as accurate as I can get? In other words, I won't be able to obtain uA accuracy at this point. However, I believe that wouldn't be the case, as the specs state that 350 uA is the minimum.
  2. Hi @attila, Earlier in the week, you told me that: However, I don't see an option to set DIO 8 and 9 to "high" from either Patterns or StaticIO from Waveforms. I read through the documentation, and although it gave me the higher level idea on what's going on, I'm not particularly sure how to set it in Waveforms. Using the Patterns application in Waveforms, I set DIO 8 and 9 to the value of "3", so their measurements occur in the range of -2.5 A to 2.5 A: However, doing so didn't really improve the accuracy of the deep sleep measurement: Is this the correct way to set DIO 8 and 9 to "high"? What steps can I take so I can see the deep sleep current at the uA level? I know this may be an extremely trivial question, but can you give me more detail on what I options I need to navigate through in Waveforms in order to set DIO 8 and 9 to high? Any guidance to help set me in the right direction would be greatly appreciated.
  3. Hi @attila and @JColvin, The "zero offset" setting help solved that issue. Thank you so much! In addition, I have one more follow-up question. I was able to get a waveform that looks similar to what I got from the PPK2, as can be seen below: However, when I zoom in on the deep sleep current, all I get are noisy measurements which oscillate between 3 mA and -1 mA: In order to see if what I got on the PPK2 was consistent, I turned on the measuring capabilities of the PPK2, keeping the circuit that I made intact. The readings I got from the PPK2 oscillate ~11-12 uA: This is the deep measurement I am hoping to get from the AD3. Keep in mind that I am measuring with the PPK2 using the circuit I made that includes the Current & Power Adapter. As an aside: Since the specs state that the adapter uses a shunt resistor, I believe the resistor is the reason that I am getting deep sleep measurements slightly higher than ~7 uA. If I remove the AD3 and the Adapter from the circuit, I'll get the expected ~7 uA of deep sleep on the PPK2. As a result, my higher level question is regarding the grainy deep sleep current measurements that I am getting on the AD3. What steps should I take in order to debug why it isn't giving me deep sleep measurements similar to what I would get on the PPK2? Or is the grainy measurements expected on the AD3, and it's indicative of something wrong with how I configured the PPK2 and ESP32-H2. Any further guidance would be greatly appreciated. In addition: Rather than looking at the current "i", I looked at voltage drop shown in Channel 2: when I zoom in on the voltage drop under deep sleep, I get ~300 uV: This is what I would expect to see in the current "i". However, I'm not sure if looking at Channel 2 directly would give me any accurate or useful information regarding the deep sleep current.
  4. Hi @JColvin, Thank you very much for taking the time to help me debug my issues with the Current & Power Adapter. I'm getting closer to where I need to be, and in order to do so, I would like to ask a few follow-up questions. Using your feedback, I modified my circuit. A diagram of the new circuit I made, along with the picture of the circuit I physically built, are both shown below. I then turn on the AD3 power supply at 5 volts. I only turned on +5V, and I left the negative power supply off. After doing so, I was able to get waveforms that look similar to the ones that I captured using the PPK2 in the Waveforms application. In this screenshot, I was able to get the waveform on wakeup on Channel 2: In this other screenshot, the waveform is shown in the "i" channel: When taking both of these screenshots, I am using the example Waveforms workspace that you created in your Getting Started guide. However, with the channel displaying the current "i" in particular, I found an issue: The current is always shown to "offset from" that is more than ~36 mA. In other words, as can be seen in the screenshot above, both the deep sleep and wakeup current are greater than ~36 mA. However, I am expecting for the current to be current to be "offset from" 0 mA. Even though the Current & Power Adapter can only supports a precision of no smaller than 350 uA, I would expect the deep sleep current to be really close to 0 mA/uA. Furthermore, I noticed that the equation you created for the current: Depends on DIO8 and DIO9, which exists in the Basys 3 FPGA board that you use in the Getting Started guide. However, I don't believe such pins exist in the ESP32-H2. As a result, I believe this offset problem may becoming from the equation for the current "i", and I need to modify it to accurately measure the current for the ESP32-H2. However, I'm not sure how to modify your current question to accomplish this goal, or even to modify your equation to measure current in a general manner (i.e. agnostic to the device under test). As a result, I have the following follow-up questions: How can I modify the current equation you made in the Waveforms workspace to make it calculate current independent of which pin is available in the MCU. In other words, what do I need to change in the current equation, given that my ESP32-H2 doesn't have DIO8 or DIO9 pins on it? What could be the issue causing the current measurements on the AD3 to have the deep sleep current be around ~36 mA, rather than around ~0 mA? What corrections do I need to make to the circuit, and/or changes to the Waveforms workspace, to get waveforms that match similar to what I found on the PPK2? This is a trivial question, but is the channel in which the current is being measured Channel 1 or Channel 2? Given the specification, I believe it is Channel 2 is the channel that should be interest of me. However I would like to double check and ask. At a higher level: I want to use the AD3, with the Current & Power Adapter, to verify that the measurements I got on the PPK2 are actually correct, especially when the device is deep sleep. Although the resolution of the AD3 can only be measured up to no smaller than 350 uA, I believe I can still use it to accomplish this goal. If the AD3 is showing the deep sleep to be oscillating around 350 uA at deep sleep, then I can confirm that my PPK2 measurements are accurate. Although 350 uA is much more than 7 uA, I was actually initially getting ~1.2 mA deep sleep current on my PPK2, before modifying my ESP32 configuration to show ~7.5 uA on the PPK2. I just need to use the AD3 to confirm that my modifications were successful. In other words, if I get ~350 uA of deep sleep current using the AD3, and not ~1.2 mA of deep sleep, then I can be confident that I configured my ESP32-H2 correctly such that it can perform deep sleep properly. I hope the explanation of my goals can help explain why I am asking the questions I am asking. Any further guidance and feedback on the circuit of Waveforms configuration that can help me address these issues would greatly be appreciated. Sincerely yours, siatran
  5. Hello everyone, My goal is to measure the deep sleep power consumption of an ESP32-H2 using the Digilent Analog Discovery 3. In my previous question on the Digilent forums, Digilent engineer @attila recommended me to use the AD3 Current & Power Adapter to measure the deep sleep current of my ESP32-H2. Following the instructions from the Getting Started guide (and improvising where need be), I had set up a circuit that uses the Nordic Semiconductors Power Profiler Kit II (PPK2) to provide 3.3 volts. A diagram of the circuit I created can be seen below. In addition, pictures of the actual circuit that I created are shown below. On the software side, I am using the Current and Power Adapter Reference WaveForms Workspace given in the Getting Started guide. I powered on my PPK2 to supply 3.3 volts, and I did not turn on the WaveForms supply, as the power supply was coming from the PPK2. When doing so, all I see in the "Scopes" mode of the WaveForms application is that C1, C2, and the current are flat lines, even though the device is on: However, this is not the expected energy consumption of my ESP32-H2. In order to double check that my ESP32-H2 was on, I measured the energy consumption of the device. The measurements that I got from the PPK2 (shown below), is what I expect to see from the AD3 and WaveForms application. However, I want to obtain these measurements from the AD3 with the Current and Power Adapter, and not on the PPK2. I described my reasons for doing so in the final three paragraphs of my previous question in the Digilent forums. When investigating why I was not able to measure the current correctly using the AD3 and the Current & Power Adapter, I found this part helpful from the Getting Started guide: This gave me the idea to set up the power supply of the AD3 to 3.3 volts in the WaveForms application: I want to note that I did not set the supply to 5 volts, as given in the instructions, as (given my current configuration of the device) using 5 volts will risk frying my ESP32-H2. When doing so, I noticed that I am able to capture a very small waveform that looks similar to the waveforms I found when measuring my ESP32-H2 current using the AD3 BNC Adapter. However, when I try to zoom in on it, I get a very grainy and low quality resolution of the waveform. These observations allow me to conclude that I am not using the AD3 Current and Power adapter properly. As a result, I would like to ask what am I doing wrong in the setup of the circuit and how I am using the WaveForms Reference workspace given in the Getting Started guide? To the best of my knowledge, the only resource I could find on how to use the Current & Power Adapter is the Getting Started guide, so I do not know where else to look. Any guidance, feedback, and advice on how I can properly use the AD3 Current & Power Adapter to measure the current of an ESP32-H2 under deep sleep (at the granularity of very small currents in uA), using the PPK2 for power supply, would be greatly appreciated.
  6. Hello everyone, My goal is to measure the deep sleep power consumption of an ESP32-H2 using the Digilent Analog Discovery 3. In my previous question on the Digilent forums, Digilent engineer @attila recommended me to use the AD3 Current & Power Adapter to measure the deep sleep current of my ESP32-H2. Following the instructions from the Getting Started guide (and improvising where need be), I had set up a circuit that uses the Nordic Semiconductors Power Profiler Kit II (PPK2) to provide 3.3 volts. A diagram of the circuit I created can be seen below. In addition, pictures of the actual circuit that I created are shown below. On the software side, I am using the Current and Power Adapter Reference WaveForms Workspace given in the Getting Started guide. I powered on my PPK2 to supply 3.3 volts, and I did not turn on the WaveForms supply, as the power supply was coming from the PPK2. When doing so, all I see in the "Scopes" mode of the WaveForms application is that C1, C2, and the current are flat lines, even though the device is on: However, this is not the expected energy consumption of my ESP32-H2. In order to double check that my ESP32-H2 was on, I measured the energy consumption of the device. The measurements that I got from the PPK2 (shown below), is what I expect to see from the AD3 and WaveForms application. However, I want to obtain these measurements from the AD3 with the Current and Power Adapter, and not on the PPK2. I described my reasons for doing so in the final three paragraphs of my previous question in the Digilent forums. When investigating why I was not able to measure the current correctly using the AD3 and the Current & Power Adapter, I found this part helpful from the Getting Started guide: This gave me the idea to set up the power supply of the AD3 to 3.3 volts in the WaveForms application: I want to note that I did not set the supply to 5 volts, as given in the instructions, as (given my current configuration of the device) using 5 volts will risk frying my ESP32-H2. When doing so, I noticed that I am able to capture a very small waveform that looks similar to the waveforms I found when measuring my ESP32-H2 current using the AD3 BNC Adapter. However, when I try to zoom in on it, I get a very grainy and low quality resolution of the waveform. These observations allow me to conclude that I am not using the AD3 Current and Power adapter properly. As a result, I would like to ask the following questions: What am I doing wrong in the setup of the circuit and how I am using the WaveForms Reference workspace given in the Getting Started guide? In the Getting Started guide, I noticed that their setup used green, yellow, blue, and black connectors with "mini-grabber hooks", as can be seen in their final setup image. I tried searching for them in the Digilent store, but I was not able to find these cables. The guide calls them "banana connectors", but even with this information, I'm not sure where I can find these in the Digilent store. Where and how I can purchase these connectors? Given my current setup, will these cables be of any help? To the best of my knowledge, the only resource I could find on how to use the Current & Power Adapter is the Getting Started guide, so I do not know where else to look. Any guidance, feedback, and advice on how I can properly use the AD3 Current & Power Adapter to measure the current of an ESP32-H2 under deep sleep (at the granularity of very small currents in uA), using the PPK2 for power supply, would be greatly appreciated.
  7. Hi @attila, I really appreciate you taking the time to answer my question. I've been stuck with how to move forward for some time, but your explanation cleared a lot of things up for me. It makes sense why I wasn't having the correct measurements, as I didn't have the Current and Power Adapter and didn't calibrate my probes for measuring such low currents. Thank you so much for helping me with my question. If I have any followup questions, I will post them later in the week. With your help, I now know what I need to do to head into the right direction.
  8. Hello everyone, My goal is to use the Power Profiler Kit II (PPK2) to measure the energy consumption of an ESP32-H2 under deep sleep, when it is running the boilerplate OpenThread deep sleep program given by Espressif (the manufacturer of the ESP32-H2). However, in order to double check that my PPK2 is actually getting the correct current measurements of ~ 7 uA at deep sleep (as stated by Espressif), I am currently trying to use the Analog Discovery 3 to measure the current of my ESP32-H2 under deep sleep. The reason I am doing so is because an engineer at Nordic Semiconductors (the manufacturer of the PPK2) recommended me to use an external measurement device if I think that the PPK2 is giving me inaccurate measurements. Since the Digilent Analog Discovery 3 cannot measure current directly, I created the circuit shown below, with a 1 Ω resistor. A picture the circuit that I built can be seen in the images below: I used the "Scope mode" of the Digilent Waveforms application. I used a math function to subtract the measured voltages between Channels 1 and 2 to obtain the voltage drop, and then I converted that voltage drop into current, measured in mA. I then compared the measurements I got from the Analog Discovery 3 with what I got when the PPK2. When using the PPK2, I used its own power supply, rather than the supply of the Discovery 3. When using the Analog Discovery 3 there are two issues I noticed. First the PPK2 is able to measure the deep sleep current at close to ~7.5-8 uA: but the deep sleep current measurements Analog Discovery 3 seem to be a bit noisy: When it comes to the current measurements on wakeup, the Analog Discovery 3 gives the same waveform shapes as the PPK2, but the maximum currents are different. In the PPK2, the maximum current never reaches greater than 140 mA: But the Digilent Analog Discovery gives larger currents as large as 150 mA on wakeup: Furthermore, as can be seen above, the waveforms in the Analog Discovery 3 seem to be less detailed than the ones offered by the PPK2. I also tried modifying the circuit by using a 0.1 Ω resistor resistor, but I still get the same deep sleep measurements that I got in the screenshots above (i.e. when using the 1 Ω resistor). Given that my results from the PPK2 more closely match the expected ~7 uA deep sleep than the Analog Discovery, I could just say that the PPK2 is accurate and my circuit setup is incorrect. However, I can't make this conclusion from the results of the Analog Discovery 3, as it doesn't tell me whether the problem is coming from my circuit setup or the PPK2. As a result, in order to truly confirm that the PPK2 readings are inaccurate, my goal is to set up the circuit with the Analog Discovery to see if it possible to obtain the same results as the PPK2. At a higher level, I suspect that there might be something I am doing wrong with my setup when measuring deep sleep, and I'm trying to confirm whether the source of the problem is the potential measurement inaccuracies with the PPK2, or how I configured my ESP32-H2 microcontroller. Assuming I am using the Analog Discovery 3 correctly, I can use its measurements to determine where the source of the problem is coming from. As a result, I would like to ask what am I doing wrong, with respect to my circuit setup and how I use the Analog Discovery 3, that is causing me to have measurements that are inconsistent with the PPK2 and the measurements given by Espressif? Any feedback and guidance that can help me in the right direction would greatly be appreciated.
×
×
  • Create New...