tfcb

Members
  • Content Count

    10
  • Joined

  • Last visited

About tfcb

  • Rank
    Member

Recent Profile Visitors

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

  1. @JColvin Update? I like to think we are being quite patient but this has dragged on for over 6 months.
  2. @JColvin, Any update on this? Still hoping to use the modules. Thanks, Tim
  3. Hi, Just tested the latest update. Here is the output with nothing connected to the IP connector. Since I'm using a Arduino Uno a https://www.sparkfun.com/products/12009 is inline to deal with 5V vs 3.3V. Any thoughts I what I might be doing wrong? Thanks! Tim 15:06:29.519 -> 13553 mA | 15.83 A 15:06:29.519 -> 15:06:29.553 -> 15:06:29.623 -> 16967 mA | 18.10 A 15:06:29.623 -> 15:06:29.623 -> 15:06:29.726 -> 13550 mA | 12.41 A 15:06:29.726 -> 15:06:29.726 -> 15:06:29.829 -> 12411 mA | 11.27 A 15:06:29.829 -> 15:06:29.829 -> 15:06:29.931 -> 11274 mA | 11.27 A 15:06:29.931 -> 15:06:29.931 -> 15:06:30.033 -> 11274 mA | 11.27 A 15:06:30.033 -> 15:06:30.033 -> 15:06:30.136 -> 11275 mA | 12.41 A 15:06:30.136 -> 15:06:30.136 -> 15:06:30.238 -> 15823 mA | 18.10 A 15:06:30.238 -> 15:06:30.238 -> 15:06:30.341 -> 19237 mA | 14.69 A 15:06:30.341 -> 15:06:30.341 -> 15:06:30.441 -> 13552 mA | 12.41 A 15:06:30.441 -> 15:06:30.475 -> 15:06:30.543 -> 11274 mA | 11.27 A 15:06:30.543 -> 15:06:30.577 -> 15:06:30.645 -> 11274 mA | 11.27 A 15:06:30.645 -> 15:06:30.679 -> 15:06:30.748 -> 11274 mA | 11.27 A 15:06:30.748 -> 15:06:30.782 -> 15:06:30.850 -> 11274 mA | 12.41 A 15:06:30.850 -> 15:06:30.884 -> 15:06:30.953 -> 15820 mA | 15.82 A 15:06:30.953 -> 15:06:30.986 -> 15:06:31.055 -> 15824 mA | 13.55 A 15:06:31.055 -> 15:06:31.089 -> 15:06:31.157 -> 12415 mA | 11.27 A 15:06:31.157 -> 15:06:31.191 -> 15:06:31.259 -> 11274 mA | 11.27 A 15:06:31.259 -> 15:06:31.293 -> 15:06:31.361 -> 11274 mA | 11.27 A 15:06:31.361 -> 15:06:31.395 -> 15:06:31.464 -> 11274 mA | 11.28 A 15:06:31.464 -> 15:06:31.499 -> 15:06:31.567 -> 13547 mA | 12.41 A 15:06:31.567 -> 15:06:31.601 -> 15:06:31.669 -> 19238 mA | 16.97 A 15:06:31.669 -> 15:06:31.703 -> 15:06:31.771 -> 16969 mA | 13.55 A 15:06:31.771 -> 15:06:31.805 -> 15:06:31.873 -> 11274 mA | 11.27 A 15:06:31.873 -> 15:06:31.907 -> 15:06:31.975 -> 11274 mA | 11.27 A 15:06:31.975 -> 15:06:32.009 -> 15:06:32.079 -> 11274 mA | 11.27 A 15:06:32.079 -> 15:06:32.114 -> 15:06:32.182 -> 11274 mA | 11.28 A 15:06:32.182 -> 15:06:32.215 -> 15:06:32.283 -> 11274 mA | 12.42 A
  4. THANKS! I appreciate the follow-up.
  5. I ran the supplied code on an Arduino Uno using a level shifter. The output doesn't make any sense to me. Why are the mA and A results so different? Based on the use of a DMM the A should be approx 13. Given the for loop wouldn't work on Arduino 1.8.8 I'm wondering if anyone has ever used this part successfully. I appreciate your insight on getting this to work.
  6. Are the data lines on the ISNS20 5v tolerant? The "resource center" isn't exactly clear. From what I can tell the various data lines on the Arduino Uno are all 5v. Obviously 3.3v will be provided to VCC. Thanks. BTW, as I understand, this for statement: for(int i; i < NUM_READINGS; i++) should really be: for(int i=0; i < NUM_READINGS; i++) otherwise, the for loop might only run once (if lucky) as the variable "i" is undefined on the first run and might remain >= NUM_READINGS thereafter. The same version of gcc produces different results when executed on ARM or x86_64. More details than I understand at: https://stackoverflow.com/questions/4532871/define-integer-int-whats-the-default-value
  7. FWIW, the following python program, based on this code: https://github.com/DesignSparkrs/DesignSpark.Pmod/blob/master/DesignSpark/Pmod/ISNS20.py #!/usr/bin/python import spidev import time spi = spidev.SpiDev() spi.open(0, 0) spi.max_speed_hz = 100000 spi.mode = 0b00 try: while True: resp = spi.xfer2([0x00, 0x00]) w = resp[0] w <<= 8 w |= resp[1] refV = 3.3 lsb = refV/4096 mV= (w-2048)*lsb*1000 amps = mV/66 print amps time.sleep(1) except KeyboardInterrupt:# Ctrl+C pressed, so... spi.close() produces: -0.048828125 15.2221679687 16.1010742188 13.76953125 5.50537109375 -3.6376953125 -11.2182617188 -15.4296875 -15.576171875 -8.69140625 1.025390625 9.89990234375 14.8559570312 15.7836914062 9.0087890625 -1.318359375 -10.595703125 -0.048828125 -0.048828125
  8. Hi, I'm attempting to use the ISNS20 with an Arduino Uno. I am using a Sparkfun Bi-Directional Logic Level Converter to handle 5V vs 3.3V. I'm using the source from https://www.hackster.io/58702/using-the-pmod-isns20-with-arduino-uno-0ee8db . CS is connected to Pin 10, D0 is connected to Pin 12 and CLK is Pin 13. I wire Black/Line to IP+ and the IP- to the Black/Line connection on an outlet. Unfortunately I get the same result if I draw current or not (using a hair dryer). 14:54:37.548 -> Courant=-33 mA 14:54:37.582 -> Courant=28 mA 14:54:37.582 -> Courant=-33 mA 14:54:37.615 -> Courant=-33 mA 14:54:37.615 -> Courant=28 mA 14:54:37.648 -> Courant=-33 mA I don't have an oscilloscope. I do have a DMM. Thanks, Tim