Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • This was the output with no mppt and 0V on the vsense pin, so the next steps are to see how accurate it is with different nomura input output voltages. In any case, seeing i2c reads is such a relief.

  • hmm it was on theĀ MCP3427_CHANNEL_2, but I swtiched to 1 and was able to see this output:


    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 21480
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 21480
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 21480
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 21480
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 21480
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 21480
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 21481
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 21480
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 21481

    the actual voltage is 25.2V

    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 21498
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 21498
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 21497
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 21498
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 21500
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 21498
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 21497

    thats for 25.6V, so there is a change

    awesome its not calibrated correctly, but there definitely is change! (this is 26V)

    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 21822
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 21824
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 21822
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 21826
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 21825
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 21823

    and when the output voltage from the mppt is 0, it takes about 30 seconds to stabilize (ramp down) but then i see this
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 10
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 10
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 10
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 10
    [0] projects/smoke_mcp3427/src/main.c:150: Voltage sense mcp3427 ID = 5; Value = 10

  • one question that remains is: why does this work on MCP3427_CHANNEL_1 when im initializing port 2?

  • answer ^ there are two channels on the MCP3427 adc, and in all cases we only use channel 1 :p

New day, more data (sept 19th)

  • I am testing the mcp3427 with the hall effect sensor rn

  • i can read data from the i2c to mcp3427, and the following table summarizes the current through the hall effect, the voltage on the vsense pin on the adc and the minicom readings

Current through hall effect

Voltage on vsense pin

minicom readings

0A (no load)

0.351V

[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 5560
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 5564
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 5564
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 5567
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 5565
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 5561
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 5564
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 5563
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 5562

24.89V/30ohm

0.83A

0.571

[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 9025
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 9023
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 9025
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 9025
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 9027
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 9027
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 9026

23.5V/15ohm

1.57A

0.765

[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 12163
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 12166
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 12163
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 12166

23.19V/10.6ohm

2.305A

0.955

[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 15211
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 15210
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 15209
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 15209
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 15209
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 15210
[0] projects/smoke_mcp3427/src/main.c:152: Current sense mcp3427 ID = 6; Value = 15213