If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
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?
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.
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.
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
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.
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.
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
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?
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.
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