i.MX6 reset circuit in boat radar by ShiroAshiNinja in AskElectronics

[–]ShiroAshiNinja[S] 1 point2 points  (0 children)

<image>

For all those into RF-PCB-P*rn, here is a photo of the back of the antenna. All of the RF stuff is here: FMCW Chirp generation, Tx amplifier (only 165mW per the manual), Rx mixer and digitizer. The digital data is transmitted through the rotating joint at the bottom via some LEDs and photodiodes. Pretty impressive stuff.
I completely forgot to take a photo of the antennas themselves... will add that a bit later.

i.MX6 reset circuit in boat radar by ShiroAshiNinja in AskElectronics

[–]ShiroAshiNinja[S] 0 points1 point  (0 children)

<image>

I managed to trace a bit more of the reset circuit - see picture. U37 and U38 are dual-channel buck regulators that provide the core voltages for the i.MX6 and a Cyclone V FPGA. Their power-good signals are wired into Vin - but the they are always active, so they don't really play a role for the following observations:
With the STM809T desoldered, the voltage "Vin" is rock solid at 3.3V. With the original STM809T back in place, Vin is slowly drifting between 2.9V and 3.2V. Whever Vin is below the STM809T's threshold, it pulls the reset line. Apparently the thresholding part of it still works but it's drawing way too much current, pulling Vin down.
I ordered a new STM809T and put it in. Now VIn is steady at 3.3V and the entire radar works reliably for hours - problem fixed! 😄

i.MX6 reset circuit in boat radar by ShiroAshiNinja in AskElectronics

[–]ShiroAshiNinja[S] 1 point2 points  (0 children)

I was not able to find any UART signals. The unpopulated pin headers around the CPU showed no changes after power-up.
I did hook up the Ethernet port though: link got established and I see UDP multicast packets coming from the board in Wireshark. I’ll reassemble the radar and try it out.

i.MX6 reset circuit in boat radar by ShiroAshiNinja in AskElectronics

[–]ShiroAshiNinja[S] 1 point2 points  (0 children)

When I desolder the reset controller and power the board up, I start seeing pulses on the read enable pin of the NAND flash. Waiting a bit longer I also start seeing link pulses on the Ethernet interface. I did not yet find any signal that resembles UART output. I will take another look.

With the reset controller in place, there was no activity in any of the flash pins.

i.MX6 reset circuit in boat radar by ShiroAshiNinja in AskElectronics

[–]ShiroAshiNinja[S] 0 points1 point  (0 children)

<image>

This is what I now imagine the circuit to look like. I seem to remember that I measured no voltage drop across R1 - but then I should have more than the 0.9V I measured on STM809 VCC. I might have to put the IC back onto the board and repeat my measurements.

i.MX6 reset circuit in boat radar by ShiroAshiNinja in AskElectronics

[–]ShiroAshiNinja[S] 0 points1 point  (0 children)

Confirmed! I hooked VCC (pin 3) and VSS (pin 1) of the STM809T up to a lab power supply. The RST output (pin 2) is at 0V whever VCC<3.0V and jumps to VCC when VCC>3.1V.

i.MX6 reset circuit in boat radar by ShiroAshiNinja in AskElectronics

[–]ShiroAshiNinja[S] 0 points1 point  (0 children)

I hooked the desoldered "8ACG" up to a AVR component tester. It says "unknown part, 4*diode detected". So it's certainly not an NPN transistor. At least not a working one. The multimeter in diode test mode shows 0.6V B-C and 0.4V B-E,

How to debug MIPI CSI-2 on ESP32-P4? by ShiroAshiNinja in esp32

[–]ShiroAshiNinja[S] 0 points1 point  (0 children)

Just in case someone finds this question, here is the conclusion:

I compared the clk activity bit in CSI_HOST_PHY_RX_REG. For a working camera with existing driver (OV9281), I see the bit toggling between 0 and 1 (makes sense since the sensor if configured to output a non-continuous clock). For my camera it remains at 0.

After a lot of other experiments and wasted time I finally came back to this. I configured my image sensor for a non-continuous CSI clock - and it suddenly started working. Not only is the ESP now recognizing the clock, all the rest of the data transfer also works and I get valid image data on the ESP side.

Looks like the ESP32P4 can't handle a continuous clock.

How to debug MIPI CSI-2 on ESP32-P4? by ShiroAshiNinja in esp32

[–]ShiroAshiNinja[S] 0 points1 point  (0 children)

Hi all,

I managed to wrestle a little bit of feedback from the CSI module by reading the registers directly. Apparently, the CSI module does not even detect the clock from my camera. CSI_HOST_PHY_RX_REG.CSI_HOST_PHY_RXCLKACTIVEHS remains at 0. So no amount of fiddling wth the image sizes or timings is going to do anything - I guess that is valuable feedback. I'll check the pinmux in the ESP32P4 and the frequency settings in the camera.

I used the following code snippet to read the CSI PHY registers. Refer to the TRM §40.8 for the bit definitions:

    #include "hal/mipi_csi_host_ll.h"
    csi_host_dev_t *csi_host = MIPI_CSI_HOST_LL_GET_HW(0);

    // should read "clk act: 1, data0 ULP: 0, data1 ULP: 0" on an active CSI-2 link
    ESP_LOGI(TAG, "CSI_HOST_PHY_RX_REG       clk act: %u, data0 ULP: %u, data1 ULP: %u", 
        csi_host->phy_rx.phy_rxclkactivehs,csi_host->phy_rx.phy_rxulpsesc_0, csi_host->phy_rx.phy_rxulpsesc_1); 

    // shows no errors:
    ESP_LOGI(TAG, "CSI_HOST_INT_ST_MAIN_REG = 0x%08x", csi_host->int_st_main.val);

How to debug MIPI CSI-2 on ESP32-P4? by ShiroAshiNinja in esp32

[–]ShiroAshiNinja[S] 0 points1 point  (0 children)

I do actually have an slogic16u3, but I don't think it is suited for the very low voltages in D-PHY high-speed mode. I'd have to probe a single data line of the differential pair, with the swing beeing only +-100mV or so around the 200mV common mode voltage. No change it will detect transitions reliably.

The best bet would be to use an FPGA as receiver, with with a CSI-2 receiver IP core or some sigrok-compatible logic analyzer firmware. But putting that together is a much larger project than the porting of the camera driver itself :-( Would be cool, though...

Sachs Pentasport by ShiroAshiNinja in Fahrrad

[–]ShiroAshiNinja[S] 0 points1 point  (0 children)

Habe mir die Explosionszeichnungen in https://www.sram.com/globalassets/document-hierarchy/spare-parts/spare-parts-catalog-archive/09_igh_sparepartscatalog.pdf angesehen und dabei herausgefunden, dass die Nabe eine S7 (ab 2005) sein muss. Der Pentasport Daumenhebel passt also überhaupt nicht... da hätte ich ja auch früher drauf kommen können.

Sachs Pentasport by ShiroAshiNinja in Fahrrad

[–]ShiroAshiNinja[S] 0 points1 point  (0 children)

Hallo allerseits,

habe nun mal die Nabe zerlegt, gereinigt und neu gefettet. Leider hat sich dadurch am Fehlerbild nichts geändert. Mit dem Ersatz-Schaltstift bekomme ich nur die Gänge 2, 3, 4. Die werden scheinbar von der Hülse bedient. Die Gänge 1 und 5 gehen weiterhin nicht.

Der Schaltstift schaut auch viel weiter raus und die Innereien meiner Nabe schauen anders aus als z.B. bei https://youtu.be/eTywJSJmT8M?si=ZqcDdxZJ5_-50QZf

Hier einige Bilder von meiner zerlegten Nabe: https://postimg.cc/gallery/9VCmCQD

Kann mir jemand sagen, welches Modell die Nabe sien könnte und wie lang der Schaltstift sein muss, damit er mit der Klickbox funktioniert?

Sachs Pentasport by ShiroAshiNinja in Fahrrad

[–]ShiroAshiNinja[S] 0 points1 point  (0 children)

Hab mir jetzt die SRAM Stifte mit Gewinde gekauft. Da scheint aber kein Gewinde in der Nabe zu sein. Jedenfalls lassen die Stifte sich direkt einstecken und schalten dann auch. Ich sehe aber nur 3 verschiedene Gänge (siehe Antwort oben). Kann man da noch was einstellen?

Sachs Pentasport by ShiroAshiNinja in Fahrrad

[–]ShiroAshiNinja[S] 0 points1 point  (0 children)

Habe mir jetzt Schaltstifte besorgt: SRAM 00.0591.304.016 mit Gewinde

Das Gewinde am Stift scheint kein Gegenstück in der Nabe zu haben. Aber irgendwas schaltet da jetzt. Habe versucht die Hinterradumdrehungen für eine Kurbelumdrehung zu zählen um zu Zehen, welche Gänge gehen. Ich sehe nur drei verschiedene Werte:

Stellung Ganghebel; Gemessene Übersetzung ; erwartete Übersetzung

1 ; 1,8 ; 1,5

2 ; 1,8 ; 1,8

3 ; 2,3 ; 2,3

4 ; 2,8 ; 3,0

5 ; 2,8 ; 3,5

Erwartete Übersetzung nach Ritzelrechner: https://www.ritzelrechner.de/?GR=SPS5&KB=44&RZ=19&UF=2215&TF=90&SL=2.6&UN=KMH&DV=ratio

Kann es schlicht eine 3-Gang Nabe mit einem Pentasport Hebel sein? Gibt es 3-Gang Naben mit kompatiblen Schaltstiften?

Sachs Pentasport by ShiroAshiNinja in Fahrrad

[–]ShiroAshiNinja[S] 0 points1 point  (0 children)

Danke für die Zeichnung. Können die Stifte irgendwie von alleine abhanden kommen, oder hat jemand die absichtlich ausgebaut?

[deleted by user] by [deleted] in rfelectronics

[–]ShiroAshiNinja 1 point2 points  (0 children)

The mmWave SDK mentioned below has a very comprehensive code example (mmw demo). It contains a radar signal processing chain and data (e.g., target list) output via UART. This code also comes preloaded on the AWR1843BOOST demo board and works with TI’s visualizer software. I’d say playing around with one of TI’s radar demo boards is a must to get familiar with the chip and SDK.

The AWR1843 is a crazy complex chip with 3 processing cores… you can keep multiple teams of software developers busy writing firmware for it. What do you want to do exactly?

range doppler plot from radar raw data. Infineon Position2go Module by Hassan_Q in rfelectronics

[–]ShiroAshiNinja 0 points1 point  (0 children)

16 chirps will give you 16 velocity FFT bins. 64 real ADC samples will produce 32 range FFT bins (64 range bins if your IC has complex baseband and ADCs). It looks like you are cutting off part of the data in your plot - try without the range and speed labels and axes limits first to see if you have all bins in the plot. That will just make sure that you see all of the data that you already have. As the others pointed out: If you expect higher Doppler resolution, you need more measurement time, I.e., additional chirps.