Announcement

Collapse
No announcement yet.

My stm32 powered pi detector

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • The front end is still in planning stages I have the tx on the bread now. Will be moving on with the front end soon.
    How are you going with the h bridge eval board?

    Comment


    • That's good to hear.

      Yeah, I have a faulty board, it looked a bit sus when I received it, almost like it had been used, only one side drives.
      Have contacted supplier and they will exchange. Lucky I had photos of unpacking...been there before.. now have to wait again for another.

      Cheers

      Muntari

      Comment


      • Bad form!! Who was the supplier?

        Comment


        • Element xx

          Had factory seal on it.

          Supplier has been great about it but its frustrating
          Last edited by Mdtoday; 06-05-2018, 05:30 AM. Reason: extra info

          Comment


          • KingJL has posted very useful info on the Vallon - here's direct link to the document he posted on his findings.
            Maybe It's closest to what you're trying to achieve here.

            Comment


            • Well I ordered a few esp32 modules to play with and have the toolchain loaded and its talking through the serial port .... so far so good .....

              Click image for larger version

Name:	ESP32_booted.jpg
Views:	1
Size:	330.4 KB
ID:	351506

              ets Jun 8 2016 00:22:57


              rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
              configsip: 0, SPIWP:0x00
              clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd _drv:0x00,wp_drv:0x00
              modeIO, clock div:2
              load:0x3ffc0000,len:0
              load:0x3ffc0000,len:2304
              load:0x40078000,len:3788
              ho 0 tail 12 room 4
              load:0x40098000,len:532
              entry 0x4009813c




              **************************************
              * hello espressif ESP32! *
              * 2nd boot is running! *
              * version (V0.1) *
              **************************************
              compile time 18:16:58


              SPI Speed : 40MHz
              SPI Mode : DIO
              SPI Flash Size : 4MB
              Partition Table:
              ## Label Usage Type ST Offset Length
              0 factory factory app 00 00 00010000 00100000
              1 rfdata RF data 01 01 00110000 00040000
              2 wifidata WiFi data 01 02 00150000 00040000
              End of partition table
              Loading app partition at offset 00010000
              section 0: paddr=0x00000020 vaddr=0x00000000 size=0x0ffe8 ( 65512)
              section 1: paddr=0x00010010 vaddr=0x3f400010 size=0x05b64 ( 23396) map
              section 2: paddr=0x00015b7c vaddr=0x3ffba720 size=0x01378 ( 4984) load
              section 3: paddr=0x00016efc vaddr=0x40080000 size=0x00400 ( 1024) load
              section 4: paddr=0x00017304 vaddr=0x40080400 size=0x126ac ( 75436) load
              section 5: paddr=0x000299b8 vaddr=0x00000000 size=0x06658 ( 26200)
              section 6: paddr=0x00030018 vaddr=0x400d0018 size=0x325b4 (206260) map
              start: 0x400807ac


              Initializing heap allocator:
              Region 19: 3FFBBA98 len 00024568 tag 0
              Region 25: 3FFE8000 len 00018000 tag 1
              Pro cpu up.
              Pro cpu start user code
              nvs_flash_init
              frc2_timer_task_hdl:3ffbc564, prio:22, stack:2048
              tcpip_task_hdlxxx : 3ffbeca8, prio:20,stack:2048
              phy_version: 80, Aug 26 2016, 13:04:06, 0
              pp_task_hdl : 3ffc34f0, prio:23, stack:8192


              :>enter uart init
              uart init wait fifo succeed
              exit uart init


              IDF version : master(db93bceb)


              WIFI LIB version : master(934d079b)


              ssc version : master(r283 4d376412)


              !!!ready!!!
              mode : softAP(32:ae:a4:1e:95:5c)
              dhcp server startip: 192.168.4.1, mask: 255.255.255.0, gw: 192.168.4.1)


              +WIFI:AP_START

              Comment


              • Hello World .... program compiles and loads ... so fingers crossed its working

                LD build/hello-world.elf
                esptool.py v2.3.1
                Flashing binaries to serial port /dev/ttyUSB0 (app at offset 0x10000)...
                esptool.py v2.3.1
                Connecting........____
                Chip is ESP32D0WDQ6 (revision 1)
                Features: WiFi, BT, Dual Core
                Uploading stub...
                Running stub...
                Stub running...
                Configuring flash size...
                Auto-detected Flash size: 4MB
                Flash params set to 0x0220
                Compressed 20768 bytes to 12228...
                Wrote 20768 bytes (12228 compressed) at 0x00001000 in 1.1 seconds (effective 153.5 kbit/s)...
                Hash of data verified.
                Compressed 139136 bytes to 69394...
                Wrote 139136 bytes (69394 compressed) at 0x00010000 in 6.1 seconds (effective 181.6 kbit/s)...
                Hash of data verified.
                Compressed 3072 bytes to 103...
                Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 1568.7 kbit/s)...
                Hash of data verified.


                Leaving...
                Hard resetting via RTS pin...

                Comment


                • hello world sample program loaded and running ....

                  Observations so far ....

                  1. The ESP32 development tools setup is not for noobs.
                  2. The easiest setup is using a virtual machine running on Vmware or Virtualbox.
                  3. Theres bugs ....

                  hello world runtime output below ...

                  Restarting in 0 seconds...
                  Restarting now.
                  ets Jun 8 2016 00:22:57


                  rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
                  configsip: 0, SPIWP:0xee
                  clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd _drv:0x00,wp_drv:0x00
                  modeIO, clock div:2
                  load:0x3fff0018,len:4
                  load:0x3fff001c,len:5724
                  load:0x40078000,len:0
                  load:0x40078000,len:14944
                  entry 0x4007862c
                  I (2 boot: ESP-IDF v3.1-dev-1353-g0e501e5-dirty 2nd stage bootloader
                  I (29) boot: compile time 15:23:30
                  I (30) boot: Enabling RNG early entropy source...
                  I (35) boot: SPI Speed : 40MHz
                  I (39) boot: SPI Mode : DIO
                  I (43) boot: SPI Flash Size : 4MB
                  I (47) boot: Partition Table:
                  I (51) boot: ## Label Usage Type ST Offset Length
                  I (5 boot: 0 nvs WiFi data 01 02 00009000 00006000
                  I (66) boot: 1 phy_init RF data 01 01 0000f000 00001000
                  I (73) boot: 2 factory factory app 00 00 00010000 00100000
                  I (81) boot: End of partition table
                  I (85) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x05520 ( 21792) map
                  I (102) esp_image: segment 1: paddr=0x00015548 vaddr=0x3ffb0000 size=0x02294 ( 8852) load
                  I (106) esp_image: segment 2: paddr=0x000177e4 vaddr=0x3ffb2294 size=0x00000 ( 0) load
                  I (112) esp_image: segment 3: paddr=0x000177ec vaddr=0x40080000 size=0x00400 ( 1024) load
                  I (121) esp_image: segment 4: paddr=0x00017bf4 vaddr=0x40080400 size=0x0841c ( 33820) load
                  I (144) esp_image: segment 5: paddr=0x00020018 vaddr=0x400d0018 size=0x11cb0 ( 72880) map
                  I (169) esp_image: segment 6: paddr=0x00031cd0 vaddr=0x4008881c size=0x0027c ( 636) load
                  I (170) esp_image: segment 7: paddr=0x00031f54 vaddr=0x400c0000 size=0x00000 ( 0) load
                  I (176) esp_image: segment 8: paddr=0x00031f5c vaddr=0x50000000 size=0x00000 ( 0) load
                  I (190) boot: Loaded app from partition at offset 0x10000
                  I (191) boot: Disabling RNG early entropy source...
                  I (197) cpu_start: Pro cpu up.
                  I (200) cpu_start: Starting app cpu, entry point is 0x40080e54
                  I (193) cpu_start: App cpu up.
                  I (211) heap_init: Initializing. RAM available for dynamic allocation:
                  I (21 heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
                  I (224) heap_init: At 3FFB32E8 len 0002CD18 (179 KiB): DRAM
                  I (230) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
                  I (236) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
                  I (243) heap_init: At 40088A98 len 00017568 (93 KiB): IRAM
                  I (249) cpu_start: Pro cpu start user code
                  I (267) cpu_start: Starting scheduler on PRO CPU.
                  I (0) cpu_start: Starting scheduler on APP CPU.
                  Hello world!
                  This is ESP32 chip with 2 CPU cores, WiFi/BT/BLE, silicon revision 1, 4MB external flash
                  Restarting in 10 seconds...
                  Restarting in 9 seconds...
                  Restarting in 8 seconds...
                  Restarting in 7 seconds...
                  Restarting in 6 seconds...
                  Restarting in 5 seconds...
                  Restarting in 4 seconds...
                  Restarting in 3 seconds...
                  Restarting in 2 seconds...
                  Restarting in 1 seconds...
                  Restarting in 0 seconds...
                  Restarting now.

                  Comment


                  • The ESP32 has an internal Hall Effect sensor ... you can read it on ADC1 with a call to

                    adc1_config_width(ADC_WIDTH_12Bit);
                    int val = hall_sensor_read();

                    It definitely picks up fridge magnets LOL.

                    I (0) cpu_start: Starting scheduler on APP CPU.
                    Hello world!
                    Hall sensor = 109
                    This is ESP32 chip with 2 CPU cores, WiFi/BT/BLE, silicon revision 1, 4MB exterh
                    Hall sensor = 102
                    Hall sensor = 105
                    Hall sensor = 78
                    Hall sensor = 62
                    Hall sensor = 125
                    Hall sensor = 103
                    Hall sensor = 90
                    Hall sensor = 427
                    Hall sensor = 14
                    Hall sensor = 79
                    Hall sensor = 104
                    Hall sensor = 63
                    Hall sensor = -16
                    Hall sensor = 439
                    Hall sensor = 105
                    Hall sensor = 107
                    Hall sensor = 102
                    Hall sensor = 108
                    Hall sensor = 104
                    Hall sensor = 107
                    Hall sensor = 111
                    Hall sensor = 107
                    Hall sensor = 106

                    Comment


                    • I have moved to the esp32 also the adc's are a bit average I am building a adc test module based on the http://www.ti.com/product/ads127l01 adc.
                      What ide are you using?

                      Comment


                      • Using the toolkit from the espressif site and good old vi editor running on centos virtual machine in virtualbox on win 10. That adc looks ok ... I was going to try out the ads12621 from ti.

                        Comment


                        • A suitable windows development IDE for ESP32 is called PlatformIO its an extension module that is loaded into Microsoft VisualCode.
                          This uses Arduino framework.
                          Both are free and theres lots of examples. eg simple web server in ESP32 flips bits to drive LEDS



                          Comment

                          Working...
                          X