Git Product home page Git Product logo

Comments (28)

chaeplin avatar chaeplin commented on June 16, 2024 1

Esp8266 use 3.3V.
Which arduino board do you use ?

If arduino board use 5V, you need i2c level shifter.
http://playground.arduino.cc/Main/I2CBi-directionalLevelShifter

from esp8266_and_arduino.

chaeplin avatar chaeplin commented on June 16, 2024

do like this. ap_setting.h has some define.

//#include "/usr/local/src/ap_setting.h" // comment out this line
// add following and change values
#define WIFI_SSID "WIFI_SSID_CHAGE_THIS" 
#define WIFI_PASSWORD "WIFI_PASS_CHAGE_THIS"
#define MQTT_SERVER { 192, 168, 10, 10 } // server ip of mgtt
#define OTA_PASSWORD "OTA_PASSWORD_CHANGE_THIS" // OTA password

then it looks like this https://gist.github.com/chaeplin/931c7e5b4d6e993c93acae85cfd6e136

I use this one now, for battery powered.
https://github.com/chaeplin/esp8266_and_arduino/tree/master/_54-atmega328p-nrf24-gy-521-hx711

from esp8266_and_arduino.

kozoke avatar kozoke commented on June 16, 2024

Hi, Thank you for your quick response. I modified the file (appreciate the example) which addressed the ap_settings.h issue. Now I am getting a series of effort around the average.h library.

If it helps, i'm simply trying to use a piece of code to pull values from the load cell. That's all. I've tried numerous libraries/scripts but none of them seem to work on the esp826612e. I even saw on Reddit your contribution on someone's hx711 issue - that script did not work for me either. error is < ets Jan 8 2013,rst cause:2, boot mode:(3,6) >

Appreciate your help and any additional thoughts.

Error messages:
In file included from C:\Users\kkozo\Documents\Arduino\esp8266_and_arduino-master_03-hx711-scale_03-hx711-scale-esp-12_03-hx711-scale-esp-12.ino:9:0:

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:26:5: error: stray '\302' in program

 <title>ESP8266Ping/ESP8266Ping.h at master · dancol90/ESP8266Ping</title>

 ^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:26:5: error: stray '\267' in program

In file included from C:\Users\kkozo\Documents\Arduino\esp8266_and_arduino-master_03-hx711-scale_03-hx711-scale-esp-12_03-hx711-scale-esp-12.ino:9:0:

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:114:3: error: missing terminating ' character

^

In file included from C:\Users\kkozo\Documents\Arduino\esp8266_and_arduino-master_03-hx711-scale_03-hx711-scale-esp-12_03-hx711-scale-esp-12.ino:9:0:

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:234:11: error: missing terminating ' character

       <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/logout" class="logout-form" data-form-nonce="310d3d86c1c00d4aabf3b393d5d3c91e252a56b7" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="s+bYWXfzau0xno6vU6iwjXw10NrlQ/3NsdI2/CpZsoib8OrdR63GTOw4L2fIilbqhmHAT+9GMUa2WcPNmEW8bA==" /></div>

       ^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:271:9: error: missing terminating ' character

     <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/notifications/subscribe" class="js-social-container" data-autosubmit="true" data-form-nonce="310d3d86c1c00d4aabf3b393d5d3c91e252a56b7" data-remote="true" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="X+HGFWypzPuEIXVy0hGPEgNw2B/ccq9KnJGIGveVUEdlHYXhCi4ESNUGf/UxV+9Qpoet1pmUuSLpuZllB5DOrA==" /></div>      <input class="form-control" id="repository_id" name="repository_id" type="hidden" value="39532736" />

     ^

In file included from C:\Users\kkozo\Documents\Arduino\esp8266_and_arduino-master_03-hx711-scale_03-hx711-scale-esp-12_03-hx711-scale-esp-12.ino:9:0:

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:300:81: error: stray '@' in program

                 <span class="description">Be notified when participating or @mentioned.</span>

                                                                             ^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:346:5: error: missing terminating ' character

 <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/dancol90/ESP8266Ping/unstar" class="starred" data-form-nonce="310d3d86c1c00d4aabf3b393d5d3c91e252a56b7" data-remote="true" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="ULhdKcl3nj6i/8JWwZY/1wL8kaLVRHAYgeppJNEJiyRt8igKuhrEGKM2SaY0nhUkpg5lkpqdA5HskILaHhsBPg==" /></div>

 ^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:358:5: error: missing terminating ' character

 <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/dancol90/ESP8266Ping/star" class="unstarred" data-form-nonce="310d3d86c1c00d4aabf3b393d5d3c91e252a56b7" data-remote="true" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="q62oh76lO4X10B7lIvZrvAzvghmvdwvPzQ+jM1od4bnapzsood7j60GudbfKxnP4VmZgm811gUZez712GzHG6w==" /></div>

 ^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:374:11: error: missing terminating ' character

       <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/dancol90/ESP8266Ping/fork" class="btn-with-count" data-form-nonce="310d3d86c1c00d4aabf3b393d5d3c91e252a56b7" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="UuOa+GZbxyE4q4hctnXW1Gopq2SN6fDYAHe5JqxzKGClZvlE3SeVLZgj1QeA0a33BKS6dfwzye8qeIXtGW39EQ==" /></div>

       ^

In file included from C:\Users\kkozo\Documents\Arduino\esp8266_and_arduino-master_03-hx711-scale_03-hx711-scale-esp-12_03-hx711-scale-esp-12.ino:9:0:

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:564:9: error: missing terminating ' character

     <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/dancol90/ESP8266Ping/edit/master/src/ESP8266Ping.h" class="inline-form js-update-url-with-hash" data-form-nonce="310d3d86c1c00d4aabf3b393d5d3c91e252a56b7" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="01LgDESzQ233HEBMB9TQUjt5HXvTdU+EGYqjSFDsbW51UG8d3lrMV9UBYcVVEzLVSYGeFE+18rXC0o96f4PhhQ==" /></div>

     ^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:569:1: error: missing terminating ' character

^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:666:70: error: stray '#' in program

     <td id="LC20" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">ifndef</span> ESP826Ping_H</td>

                                                                  ^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:670:70: error: stray '#' in program

     <td id="LC21" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">ESP826Ping_H</span></td>

                                                                  ^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:679:70: error: stray '#' in program

     <td id="LC23" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>Arduino.h<span class="pl-pds">&gt;</span></span></td>

                                                                  ^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:683:70: error: stray '#' in program

     <td id="LC24" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>ESP8266WiFi.h<span class="pl-pds">&gt;</span></span></td>

                                                                  ^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:696:72: error: stray '#' in program

     <td id="LC27" class="blob-code blob-code-inner js-file-line">  #<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>ping.h<span class="pl-pds">&gt;</span></span></td>

                                                                    ^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:713:70: error: stray '#' in program

     <td id="LC31" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">DEBUG_PING</span>(...)</td>

                                                                  ^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:817:70: error: stray '#' in program

     <td id="LC55" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">endif</span></td>

                                                                  ^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:827:3: error: missing terminating ' character

^

In file included from C:\Users\kkozo\Documents\Arduino\esp8266_and_arduino-master_03-hx711-scale_03-hx711-scale-esp-12_03-hx711-scale-esp-12.ino:11:0:

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:26:5: error: stray '\302' in program

 <title>Average/Average.h at master · MajenkoLibraries/Average</title>

 ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:26:5: error: stray '\267' in program

In file included from C:\Users\kkozo\Documents\Arduino\esp8266_and_arduino-master_03-hx711-scale_03-hx711-scale-esp-12_03-hx711-scale-esp-12.ino:11:0:

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:114:3: error: missing terminating ' character

^

In file included from C:\Users\kkozo\Documents\Arduino\esp8266_and_arduino-master_03-hx711-scale_03-hx711-scale-esp-12_03-hx711-scale-esp-12.ino:11:0:

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:234:11: error: missing terminating ' character

       <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/logout" class="logout-form" data-form-nonce="310d3d86c1c00d4aabf3b393d5d3c91e252a56b7" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="FNxIrapZGh6ydzN9wiFnlKVJ1DHLw/v/zMbPvbh3sjklAeiyd68mGZIcSWYixOH8lXCqrLUCkMj2O7mu0T+x5g==" /></div>

       ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:271:9: error: missing terminating ' character

     <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/notifications/subscribe" class="js-social-container" data-autosubmit="true" data-form-nonce="310d3d86c1c00d4aabf3b393d5d3c91e252a56b7" data-remote="true" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="KVHFNM1w8GJ2ll67AMAh5eJ58Iri++7JHCkZsPjHfwBgRd64HCtwwkZHexB9/KvTG4c2AZEuYQI1yhZkVBdyZA==" /></div>      <input class="form-control" id="repository_id" name="repository_id" type="hidden" value="15259113" />

     ^

In file included from C:\Users\kkozo\Documents\Arduino\esp8266_and_arduino-master_03-hx711-scale_03-hx711-scale-esp-12_03-hx711-scale-esp-12.ino:11:0:

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:300:81: error: stray '@' in program

                 <span class="description">Be notified when participating or @mentioned.</span>

                                                                             ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:346:5: error: missing terminating ' character

 <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/MajenkoLibraries/Average/unstar" class="starred" data-form-nonce="310d3d86c1c00d4aabf3b393d5d3c91e252a56b7" data-remote="true" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="uJjJirh6ZKzmWeBs6TjZHZVKiuuSBlwDe32eqFineyUivaTDm6xVoXqaGKC+/ABxXrBCJasjv9KzStTPuYPCYg==" /></div>

 ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:358:5: error: missing terminating ' character

 <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/MajenkoLibraries/Average/star" class="unstarred" data-form-nonce="310d3d86c1c00d4aabf3b393d5d3c91e252a56b7" data-remote="true" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="4EEpN655BA3jeDOtqJt/Szwe6JCLDyHVJBMlS2nZxq1hT5rFki6qzn49L+CSkQPa1ojrn5GAzte5w/CQfxF7+Q==" /></div>

 ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:374:11: error: missing terminating ' character

       <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/MajenkoLibraries/Average/fork" class="btn-with-count" data-form-nonce="310d3d86c1c00d4aabf3b393d5d3c91e252a56b7" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="WIzGqvnQAyOIjGxN/np2mfLxQJurU/JL1mCy138d0X/dppcFWuISLm4st/RZ/xNaav4+jwOqCMNL54DS6eiq5g==" /></div>

       ^

In file included from C:\Users\kkozo\Documents\Arduino\esp8266_and_arduino-master_03-hx711-scale_03-hx711-scale-esp-12_03-hx711-scale-esp-12.ino:11:0:

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:602:9: error: missing terminating ' character

     <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/MajenkoLibraries/Average/edit/master/Average.h" class="inline-form js-update-url-with-hash" data-form-nonce="310d3d86c1c00d4aabf3b393d5d3c91e252a56b7" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="4xzsmkDBuYm/2DDyoKUSRcyAdL+WLMiea0W/6Owedom7bCOEyDHJ1YExkHVeBjAgNTJvY8mBcbCFVYZye8WRGA==" /></div>

     ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:607:1: error: missing terminating ' character

^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:753:70: error: stray '#' in program

     <td id="LC32" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">ifndef</span> _AVERAGE_H</td>

                                                                  ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:757:70: error: stray '#' in program

     <td id="LC33" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">_AVERAGE_H</span></td>

                                                                  ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:766:70: error: stray '#' in program

     <td id="LC35" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">if</span> (ARDUINO &gt;= 100) </td>

                                                                  ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:770:70: error: stray '#' in program

     <td id="LC36" class="blob-code blob-code-inner js-file-line"># <span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>Arduino.h<span class="pl-pds">&gt;</span></span></td>

                                                                  ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:774:70: error: stray '#' in program

     <td id="LC37" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">else</span></td>

                                                                  ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:778:70: error: stray '#' in program

     <td id="LC38" class="blob-code blob-code-inner js-file-line"># <span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>WProgram.h<span class="pl-pds">&gt;</span></span></td>

                                                                  ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:782:70: error: stray '#' in program

     <td id="LC39" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">endif</span></td>

                                                                  ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:791:70: error: stray '#' in program

     <td id="LC41" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>math.h<span class="pl-pds">&gt;</span></span></td>

                                                                  ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:1901:71: error: stray '#' in program

     <td id="LC308" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">endif</span></td>

                                                                   ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:1911:3: error: missing terminating ' character

^

In file included from C:\Users\kkozo\Documents\Arduino\esp8266_and_arduino-master_03-hx711-scale_03-hx711-scale-esp-12_03-hx711-scale-esp-12.ino:9:0:

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:5:1: error: expected unqualified-id before '<' token

^

In file included from C:\Users\kkozo\Documents\Arduino\esp8266_and_arduino-master_03-hx711-scale_03-hx711-scale-esp-12_03-hx711-scale-esp-12.ino:9:0:

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:540:3: error: expected unqualified-id before '<' token

^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:679:149: error: expected unqualified-id before '<' token

     <td id="LC23" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>Arduino.h<span class="pl-pds">&gt;</span></span></td>

                                                                                                                                                 ^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:679:190: error: expected unqualified-id before '<' token

     <td id="LC23" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>Arduino.h<span class="pl-pds">&gt;</span></span></td>

                                                                                                                                                                                          ^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:683:149: error: expected unqualified-id before '<' token

     <td id="LC24" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>ESP8266WiFi.h<span class="pl-pds">&gt;</span></span></td>

                                                                                                                                                 ^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:683:194: error: expected unqualified-id before '<' token

     <td id="LC24" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>ESP8266WiFi.h<span class="pl-pds">&gt;</span></span></td>

                                                                                                                                                                                              ^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:692:149: error: expected unqualified-id before '<' token

     <td id="LC26" class="blob-code blob-code-inner js-file-line"><span class="pl-k">extern</span> <span class="pl-s"><span class="pl-pds">&quot;</span>C<span class="pl-pds">&quot;</span></span> {</td>

                                                                                                                                                 ^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:692:184: error: expected unqualified-id before '<' token

     <td id="LC26" class="blob-code blob-code-inner js-file-line"><span class="pl-k">extern</span> <span class="pl-s"><span class="pl-pds">&quot;</span>C<span class="pl-pds">&quot;</span></span> {</td>

                                                                                                                                                                                    ^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:700:71: error: expected unqualified-id before '<' token

     <td id="LC28" class="blob-code blob-code-inner js-file-line">}</td>

                                                                   ^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:799:72: error: expected unqualified-id before '<' token

     <td id="LC51" class="blob-code blob-code-inner js-file-line">};</td>

                                                                    ^

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:808:118: error: expected unqualified-id before '<' token

     <td id="LC53" class="blob-code blob-code-inner js-file-line"><span class="pl-k">extern</span> PingClass Ping;</td>

                                                                                                                  ^

In file included from C:\Users\kkozo\Documents\Arduino\esp8266_and_arduino-master_03-hx711-scale_03-hx711-scale-esp-12_03-hx711-scale-esp-12.ino:9:0:

C:\Users\kkozo\Documents\Arduino\libraries\ESP8266Ping/ESP8266Ping.h:858:18: error: expected unqualified-id before numeric constant

   <li>&copy; 2016 <span title="0.08942s from github-fe118-cp1-prd.iad.github.net">GitHub</span>, Inc.</li>

              ^

In file included from C:\Users\kkozo\Documents\Arduino\esp8266_and_arduino-master_03-hx711-scale_03-hx711-scale-esp-12_03-hx711-scale-esp-12.ino:11:0:

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:5:1: error: expected unqualified-id before '<' token

^

In file included from C:\Users\kkozo\Documents\Arduino\esp8266_and_arduino-master_03-hx711-scale_03-hx711-scale-esp-12_03-hx711-scale-esp-12.ino:11:0:

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:766:113: error: expected unqualified-id before '=' token

     <td id="LC35" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">if</span> (ARDUINO &gt;= 100) </td>

                                                                                                             ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:770:150: error: expected unqualified-id before '<' token

     <td id="LC36" class="blob-code blob-code-inner js-file-line"># <span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>Arduino.h<span class="pl-pds">&gt;</span></span></td>

                                                                                                                                                  ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:770:191: error: expected unqualified-id before '<' token

     <td id="LC36" class="blob-code blob-code-inner js-file-line"># <span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>Arduino.h<span class="pl-pds">&gt;</span></span></td>

                                                                                                                                                                                           ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:778:150: error: expected unqualified-id before '<' token

     <td id="LC38" class="blob-code blob-code-inner js-file-line"># <span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>WProgram.h<span class="pl-pds">&gt;</span></span></td>

                                                                                                                                                  ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:778:192: error: expected unqualified-id before '<' token

     <td id="LC38" class="blob-code blob-code-inner js-file-line"># <span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>WProgram.h<span class="pl-pds">&gt;</span></span></td>

                                                                                                                                                                                            ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:791:149: error: expected unqualified-id before '<' token

     <td id="LC41" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>math.h<span class="pl-pds">&gt;</span></span></td>

                                                                                                                                                 ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:791:187: error: expected unqualified-id before '<' token

     <td id="LC41" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>math.h<span class="pl-pds">&gt;</span></span></td>

                                                                                                                                                                                       ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:808:71: error: expected unqualified-id before '<' token

     <td id="LC45" class="blob-code blob-code-inner js-file-line">}</td>

                                                                   ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:817:109: error: expected unqualified-id before '<' token

     <td id="LC47" class="blob-code blob-code-inner js-file-line"><span class="pl-k">template </span>&lt;<span class="pl-k">class</span> <span class="pl-en">T</span>&gt; <span class="pl-k">class</span> <span class="pl-en">Average</span> {</td>

                                                                                                         ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:817:174: error: expected unqualified-id before '<' token

     <td id="LC47" class="blob-code blob-code-inner js-file-line"><span class="pl-k">template </span>&lt;<span class="pl-k">class</span> <span class="pl-en">T</span>&gt; <span class="pl-k">class</span> <span class="pl-en">Average</span> {</td>

                                                                                                                                                                          ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:947:72: error: expected unqualified-id before '<' token

     <td id="LC79" class="blob-code blob-code-inner js-file-line">};</td>

                                                                    ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:956:109: error: expected unqualified-id before '<' token

     <td id="LC81" class="blob-code blob-code-inner js-file-line"><span class="pl-k">template </span>&lt;<span class="pl-k">class</span> <span class="pl-en">T</span>&gt; <span class="pl-k">int</span> Average&lt;T&gt;::getCount() {</td>

                                                                                                         ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:956:174: error: expected unqualified-id before '<' token

     <td id="LC81" class="blob-code blob-code-inner js-file-line"><span class="pl-k">template </span>&lt;<span class="pl-k">class</span> <span class="pl-en">T</span>&gt; <span class="pl-k">int</span> Average&lt;T&gt;::getCount() {</td>

                                                                                                                                                                          ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:956:215: error: 'T' does not name a type

     <td id="LC81" class="blob-code blob-code-inner js-file-line"><span class="pl-k">template </span>&lt;<span class="pl-k">class</span> <span class="pl-en">T</span>&gt; <span class="pl-k">int</span> Average&lt;T&gt;::getCount() {</td>

                                                                                                                                                                                                                   ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:956:231: error: ISO C++ forbids declaration of 'getCount' with no type [-fpermissive]

     <td id="LC81" class="blob-code blob-code-inner js-file-line"><span class="pl-k">template </span>&lt;<span class="pl-k">class</span> <span class="pl-en">T</span>&gt; <span class="pl-k">int</span> Average&lt;T&gt;::getCount() {</td>

                                                                                                                                                                                                                                   ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:956:231: error: explicit qualification in declaration of 'int getCount()'

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h: In function 'int getCount()':

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:956:234: error: expected primary-expression before '<' token

     <td id="LC81" class="blob-code blob-code-inner js-file-line"><span class="pl-k">template </span>&lt;<span class="pl-k">class</span> <span class="pl-en">T</span>&gt; <span class="pl-k">int</span> Average&lt;T&gt;::getCount() {</td>

                                                                                                                                                                                                                                      ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:956:235: error: expected primary-expression before '/' token

     <td id="LC81" class="blob-code blob-code-inner js-file-line"><span class="pl-k">template </span>&lt;<span class="pl-k">class</span> <span class="pl-en">T</span>&gt; <span class="pl-k">int</span> Average&lt;T&gt;::getCount() {</td>

                                                                                                                                                                                                                                       ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:956:236: error: 'td' was not declared in this scope

     <td id="LC81" class="blob-code blob-code-inner js-file-line"><span class="pl-k">template </span>&lt;<span class="pl-k">class</span> <span class="pl-en">T</span>&gt; <span class="pl-k">int</span> Average&lt;T&gt;::getCount() {</td>

                                                                                                                                                                                                                                        ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:957:7: error: expected primary-expression before '<' token

   </tr>

   ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:957:8: error: expected primary-expression before '/' token

   </tr>

    ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:957:9: error: 'tr' was not declared in this scope

   </tr>

     ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:958:7: error: expected primary-expression before '<' token

   <tr>

   ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:959:9: error: expected primary-expression before '<' token

     <td id="L82" class="blob-num js-line-number" data-line-number="82"></td>

     ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:959:13: error: expected ';' before 'id'

     <td id="L82" class="blob-num js-line-number" data-line-number="82"></td>

         ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:960:114: error: expected primary-expression before '<' token

     <td id="LC82" class="blob-code blob-code-inner js-file-line">    <span class="pl-k">return</span> _count;</td>

                                                                                                              ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:960:115: error: expected primary-expression before '/' token

     <td id="LC82" class="blob-code blob-code-inner js-file-line">    <span class="pl-k">return</span> _count;</td>

                                                                                                               ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:961:7: error: expected primary-expression before '<' token

   </tr>

   ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:961:8: error: expected primary-expression before '/' token

   </tr>

    ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:962:7: error: expected primary-expression before '<' token

   <tr>

   ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:963:9: error: expected primary-expression before '<' token

     <td id="L83" class="blob-num js-line-number" data-line-number="83"></td>

     ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:963:13: error: expected ';' before 'id'

     <td id="L83" class="blob-num js-line-number" data-line-number="83"></td>

         ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h: At global scope:

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:964:71: error: expected unqualified-id before '<' token

     <td id="LC83" class="blob-code blob-code-inner js-file-line">}</td>

                                                                   ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:973:109: error: expected unqualified-id before '<' token

     <td id="LC85" class="blob-code blob-code-inner js-file-line"><span class="pl-k">template </span>&lt;<span class="pl-k">class</span> <span class="pl-en">T</span>&gt; Average&lt;T&gt;::Average(<span class="pl-c1">uint32_t</span> size) {</td>

                                                                                                         ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:973:174: error: 'Average' does not name a type

     <td id="LC85" class="blob-code blob-code-inner js-file-line"><span class="pl-k">template </span>&lt;<span class="pl-k">class</span> <span class="pl-en">T</span>&gt; Average&lt;T&gt;::Average(<span class="pl-c1">uint32_t</span> size) {</td>

                                                                                                                                                                          ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:973:185: error: 'T' does not name a type

     <td id="LC85" class="blob-code blob-code-inner js-file-line"><span class="pl-k">template </span>&lt;<span class="pl-k">class</span> <span class="pl-en">T</span>&gt; Average&lt;T&gt;::Average(<span class="pl-c1">uint32_t</span> size) {</td>

                                                                                                                                                                                     ^

C:\Users\kkozo\Documents\Arduino\libraries\Average/Average.h:973:199: error: expected constructor, destructor, or type conversion before '(' token

     <td id="LC85" class="blob-code blob-code-inner js-file-line"><span class="pl-k">template </span>&lt;<span class="pl-k">class</span> <span class="pl-en">T</span>&gt; Average&lt;T&gt;::Average(<span class="pl-c1">uint32_t</span> size) {</td>

from esp8266_and_arduino.

chaeplin avatar chaeplin commented on June 16, 2024

Use this one : https://github.com/chaeplin/esp8266_and_arduino/tree/master/_03-hx711-scale/old_scale_version/_03-hx711-scale-v1-adaptor

from esp8266_and_arduino.

kozoke avatar kozoke commented on June 16, 2024

Hi,
Thanks. I had looked at this sketch before but had similar problems. But, I
tried it again, configured ap_setting.h and deleted and redownloaded the
pubsubclient. No luck. Here are the errors.

Any other suggestions?
Is there a segment of this code that just deals with the hx711? I use
HomieOTA for my mqtt/wifi connectivity so I really just need to figure out
how to read from the HX711.

appreciate your help.

_03-hx711-scale-esp-12:25: error: no matching function for call to
'PubSubClient::PubSubClient(WiFiClient&, IPAddress&)'

PubSubClient client(wifiClient, server);

                                   ^

C:\Users\kkozo\Documents\Arduino\esp8266_and_arduino-master_03-hx711-scale\old_scale_version_03-hx711-scale-v1-adaptor_03-hx711-scale-esp-12_03-hx711-scale-esp-12.ino:25:39:
note: candidates are:

In file included from
C:\Users\kkozo\Documents\Arduino\esp8266_and_arduino-master_03-hx711-scale\old_scale_version_03-hx711-scale-v1-adaptor_03-hx711-scale-esp-12_03-hx711-scale-esp-12.ino:1:0:

C:\Users\kkozo\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:116:4:
note: PubSubClient::PubSubClient(const char_, uint16_t,
std::function<void(char_, unsigned char*, unsigned int)>, Client&, Stream&)

PubSubClient(const char*, uint16_t, MQTT_CALLBACK_SIGNATURE,Client&

client, Stream&);

^

C:\Users\kkozo\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:116:4:
note: candidate expects 5 arguments, 2 provided

C:\Users\kkozo\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:115:4:
note: PubSubClient::PubSubClient(const char_, uint16_t,
std::function<void(char_, unsigned char*, unsigned int)>, Client&)

PubSubClient(const char*, uint16_t, MQTT_CALLBACK_SIGNATURE,Client&

client);

^

C:\Users\kkozo\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:115:4:
note: candidate expects 4 arguments, 2 provided

C:\Users\kkozo\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:114:4:
note: PubSubClient::PubSubClient(const char*, uint16_t, Client&, Stream&)

PubSubClient(const char*, uint16_t, Client& client, Stream&);

^

C:\Users\kkozo\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:114:4:
note: candidate expects 4 arguments, 2 provided

C:\Users\kkozo\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:113:4:
note: PubSubClient::PubSubClient(const char*, uint16_t, Client&)

PubSubClient(const char*, uint16_t, Client& client);

from esp8266_and_arduino.

chaeplin avatar chaeplin commented on June 16, 2024

hmm check this https://gist.github.com/chaeplin/d3cc3675982d8c92455b
It's https://github.com/bogde/HX711 example with ESP.wdtDisable.

from esp8266_and_arduino.

kozoke avatar kozoke commented on June 16, 2024

FYI I took your code - prior suggestion _03 and pulled out all of the
wifi/mqtt stuff. Good news is that it is not doing the soft reset. Bad
news, it is only giving me a raw value of 65535. I had the hardware (hx711
and load sensors working correctly with an arduino yesterday so they should
be fine. Here is what was left of your code when I stripped it down.
Anything in here look wrong? I'll try your suggestion above now. Thanks!

#include <HX711.h>

#if defined(ESP8266)
#include <pgmspace.h>
#else
#include <avr/pgmspace.h>
#endif
#include <Wire.h> /

// wifi
#ifdef __IS_MY_HOME
#include "/usr/local/src/ap_setting.h"
#else
#include "ap_setting.h"
#endif

int inuse = LOW;
#define nemoisOnPin 13

void setup() {
Serial.begin(38400);
//Wire.pins(4, 5);
Wire.begin(4,5);
Serial.println("HX711 START");
delay(20);
pinMode(nemoisOnPin,INPUT);
}

void loop() {
inuse = digitalRead(nemoisOnPin);
if ( inuse == HIGH ) {
requestHx711();
}
delay(500);
}

String macToStr(const uint8_t* mac)
{
String result;
for (int i = 0; i < 6; ++i) {
result += String(mac[i], 16);
if (i < 5)
result += ':';
}
return result;
}

void requestHx711() {
Wire.requestFrom(2, 2);

 int x;
 byte a, b;

 a = Wire.read();
 b = Wire.read();

 x = a;
 x = x << 8 | b;

Serial.print(x);

 String payload = "{\"NemoWeight\":";
 payload += x;
 payload += "}";

sendHx711(payload);

}

On Sun, May 29, 2016 at 9:41 PM, CHAE-PIL LIM [email protected]
wrote:

hmm check this https://gist.github.com/chaeplin/d3cc3675982d8c92455b
It's https://github.com/bogde/HX711 example with ESP.wdtDisable.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#32 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AOQe5BIlCqM4HxrZLdV_J34Md0v5PFQQks5qGmpsgaJpZM4IpOIy

from esp8266_and_arduino.

chaeplin avatar chaeplin commented on June 16, 2024

This sketch is not esp8266 + hx711.
It's esp8266 + pro mini(+ hx711).

So Arduino should have i2c connection to esp8266.

https://github.com/chaeplin/esp8266_and_arduino/blob/master/_03-hx711-scale/pics/6.jpg

from esp8266_and_arduino.

kozoke avatar kozoke commented on June 16, 2024

Hi,
Just tried your suggestion above: It's https://github.com/bogde/HX711 example
with ESP.wdtDisable.
That didn't work - took me back to the bootloader message: ets Jan 8
2013,rst cause:2, boot mode: (3,6)

Seems like your _03 older script works (at least it isn't showing the
bootloader message).
I just confirmed the hardware is working with an arduino script called
"simple_scale" (forget where i got it). I tried putting the Simple_Scale
script (below) on the esp, changing the pings to d4,d5 and I got a fatal
exception messages spooling across the screen.

Well, we are getting closer! any other ideas?
thanks

On Sun, May 29, 2016 at 9:41 PM, CHAE-PIL LIM [email protected]
wrote:

hmm check this https://gist.github.com/chaeplin/d3cc3675982d8c92455b
It's https://github.com/bogde/HX711 example with ESP.wdtDisable.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#32 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AOQe5BIlCqM4HxrZLdV_J34Md0v5PFQQks5qGmpsgaJpZM4IpOIy
.

Keith Kozo
4159371909
[email protected]

from esp8266_and_arduino.

kozoke avatar kozoke commented on June 16, 2024

I'm not sure i'm following.
I pulled your code as suggested: esp8266_and_arduino
https://github.com/chaeplin/esp8266_and_arduino/_03-hx711-scale
https://github.com/chaeplin/esp8266_and_arduino/tree/master/_03-hx711-scale
/old_scale_version
https://github.com/chaeplin/esp8266_and_arduino/tree/master/_03-hx711-scale/old_scale_version
/_03-hx711-scale-v1-adaptor
https://github.com/chaeplin/esp8266_and_arduino/tree/master/_03-hx711-scale/old_scale_version/_03-hx711-scale-v1-adaptor
/_03-hx711-scale-esp-12
https://github.com/chaeplin/esp8266_and_arduino/tree/master/_03-hx711-scale/old_scale_version/_03-hx711-scale-v1-adaptor/_03-hx711-scale-esp-12
/_03-hx711-scale-esp-12.ino

I pulled out the wifi and mqtt stuff and it ran but with only one repeating
value.

You mention arduino hsould have i2c which I believe is included wire.h
library which is still in the remaining code I sent. Also, please note i'm
using a esp8266 12e dev board if that matters.

Clearly i'm missing something here. Am I using the old or wrong wire.h
library?

thx

On Sun, May 29, 2016 at 10:02 PM, CHAE-PIL LIM [email protected]
wrote:

This sketch is not esp8266 + hx711.
It's esp8266 + pro mini(+ hx711).

So Arduino should have i2c connection to esp8266.

https://github.com/chaeplin/esp8266_and_arduino/blob/master/_03-hx711-scale/pics/6.jpg


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#32 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AOQe5FvbF7eKVSs9jrtqWMthwMdEeqrNks5qGm9wgaJpZM4IpOIy

from esp8266_and_arduino.

chaeplin avatar chaeplin commented on June 16, 2024

Which esp do you use?
How do you connect esp, arduino and hx711 ?

from esp8266_and_arduino.

kozoke avatar kozoke commented on June 16, 2024

Esp8266 12e amica

from esp8266_and_arduino.

kozoke avatar kozoke commented on June 16, 2024

Hi
Arduino uno.

I have the esp powered through the usb 5v pin. I'll look at the guidance about level shifting. That is new to me

from esp8266_and_arduino.

chaeplin avatar chaeplin commented on June 16, 2024

Uno i2c use 5V, esp i2c use 3.3V.
So voltage level shifting is needed.
https://www.youtube.com/watch?v=VDfI546YThQ

from esp8266_and_arduino.

kozoke avatar kozoke commented on June 16, 2024

Ok. Let me look into it and get back to you. Again, thanks for your patience and support.

from esp8266_and_arduino.

chaeplin avatar chaeplin commented on June 16, 2024

Check this for i2c.
http://gammon.com.au/i2c
https://learn.sparkfun.com/tutorials/i2c

from esp8266_and_arduino.

kozoke avatar kozoke commented on June 16, 2024

from esp8266_and_arduino.

chaeplin avatar chaeplin commented on June 16, 2024

@kozoke
Which combination do you use ? Let me check again.

  1. esp8266 + hx711 : some variation on hx711 reading
  2. esp8266 --i2c--arduino-hx711 : reliable on hx711 reading

If it's

  1. you don't need level shifting.
  2. then you need level shifting between esp8266 and arduino, not hx711.

from esp8266_and_arduino.

kozoke avatar kozoke commented on June 16, 2024

esp8266 + hx711

Keith Kozo
4159371909
[email protected]

from esp8266_and_arduino.

chaeplin avatar chaeplin commented on June 16, 2024

hmm 1) then you should check https://gist.github.com/chaeplin/d3cc3675982d8c92455b
It should work. If not, change pins sck and dout.
When I use more than 5 in scale.read_average(?) and scale.get_value(?) error occurred.
After uploading sketch, reset once more for sure.

from esp8266_and_arduino.

kozoke avatar kozoke commented on June 16, 2024

Tried the sketch above. No luck. I'm back to the "ets Jan 8 2013,rst cause:2, boot mode: (3,6)" Same error if I use the 3.3v pin or the 5v pin.

I did not understand your statement. "If not, change pins sick and dout - you mean change the sda and clock pins? they are on d4 for data and d5 for clock. Those are the defaults I believe?

You also said, "When I use more than 5 in scale.read_average(?) and scale.get_value(?) error occurred." Do you mean, when you use 5v vs 3.3v you see the monitor? Don't understand the reference to scale.read_average and scale.get_value. Can you clarify?

I also tried re-downloading the bodge/hx711 library you refer to in your readme fiile. That didn't help and made your sketch above kick out error messages (see below).

I'm just baffled by this. Do you have the esp12 and hx711 or is your set up different?

In file included from C:\Users\kkozo\Documents\Arduino\LoadCell\cheaplinhx711\cheaplinhx711.ino:1:0:

C:\Users\kkozo\Documents\Arduino\libraries\HX711/HX711.h:26:5: error: stray '\302' in program

 <title>HX711/HX711.h at master · bogde/HX711</title>

 ^

C:\Users\kkozo\Documents\Arduino\libraries\HX711/HX711.h:26:5: error: stray '\267' in program

In file included from C:\Users\kkozo\Documents\Arduino\LoadCell\cheaplinhx711\cheaplinhx711.ino:1:0:

C:\Users\kkozo\Documents\Arduino\libraries\HX711/HX711.h:114:3: error: missing terminating ' character

^

In file included from C:\Users\kkozo\Documents\Arduino\LoadCell\cheaplinhx711\cheaplinhx711.ino:1:0:

C:\Users\kkozo\Documents\Arduino\libraries\HX711/HX711.h:234:11: error: missing terminating ' character

       <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/logout" class="logout-form" data-form-nonce="310d3d86c1c00d4aabf3b393d5d3c91e252a56b7" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="jLho5jBEsoUVo2H0E+J+P70Q9KbHmZMD8eSdnOxCoKEes9I4QAN8DeFs3taPs4hGAnaAwMXeTaseOihDJBZe6g==" /></div>

       ^

C:\Users\kkozo\Documents\Arduino\libraries\HX711/HX711.h:271:9: error: missing terminating ' character

     <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/notifications/subscribe" class="js-social-container" data-autosubmit="true" data-form-nonce="310d3d86c1c00d4aabf3b393d5d3c91e252a56b7" data-remote="true" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="WuXLVlE8Ng0QTxVOB9eYCBQL3wLJj7obMlOQs7nGjSyOI7PT64+RkSpLDg+pm0XRoF8t6vfUSPMWq9iQ3a8ylg==" /></div>      <input class="form-control" id="repository_id" name="repository_id" type="hidden" value="16257296" />

     ^

In file included from C:\Users\kkozo\Documents\Arduino\LoadCell\cheaplinhx711\cheaplinhx711.ino:1:0:

C:\Users\kkozo\Documents\Arduino\libraries\HX711/HX711.h:300:81: error: stray '@' in program

                 <span class="description">Be notified when participating or @mentioned.</span>

                                                                             ^

C:\Users\kkozo\Documents\Arduino\libraries\HX711/HX711.h:346:5: error: missing terminating ' character

 <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/bogde/HX711/unstar" class="starred" data-form-nonce="310d3d86c1c00d4aabf3b393d5d3c91e252a56b7" data-remote="true" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="VNa/TXrPLVYD32dRYlJDG66KAIsZH9ua18rbUfy1Bq8c6GlBioynBzKZfyFKLHoHYXJxuw5MPmoSdqvd5mWCwg==" /></div>

 ^

C:\Users\kkozo\Documents\Arduino\libraries\HX711/HX711.h:358:5: error: missing terminating ' character

 <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/bogde/HX711/star" class="unstarred" data-form-nonce="310d3d86c1c00d4aabf3b393d5d3c91e252a56b7" data-remote="true" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="JN3A8xGPz8msm2TcAY1+/rQnO9Xm0+oLgpQBFwIaWBo/lxova5bbAEM6HwF8IBI4eselxuuuF4JVWifBEPLfIw==" /></div>

 ^

C:\Users\kkozo\Documents\Arduino\libraries\HX711/HX711.h:374:11: error: missing terminating ' character

       <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/bogde/HX711/fork" class="btn-with-count" data-form-nonce="310d3d86c1c00d4aabf3b393d5d3c91e252a56b7" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="xlTi8vY4pRTDTe+2zLA0FbD5Pe/eaS36tNr0aWnXwt0plb4I/cEtgg3wp4NdF/B4d2Q82WIxT1hjxlHyBdT0VA==" /></div>

       ^

In file included from C:\Users\kkozo\Documents\Arduino\LoadCell\cheaplinhx711\cheaplinhx711.ino:1:0:

C:\Users\kkozo\Documents\Arduino\libraries\HX711/HX711.h:554:11: error: exponent has no digits

       7ef0535

       ^

C:\Users\kkozo\Documents\Arduino\libraries\HX711/HX711.h:600:9: error: missing terminating ' character

     <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/bogde/HX711/edit/master/HX711.h" class="inline-form js-update-url-with-hash" data-form-nonce="310d3d86c1c00d4aabf3b393d5d3c91e252a56b7" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="CSHAmpoQKlYeX+pflwASd8+7r6bKuvSULLGp9lkEIV7JJDzoJfX/rG7bt2Yelr9pWgsPFUyAcIttFi/0pfw4ew==" /></div>

     ^

C:\Users\kkozo\Documents\Arduino\libraries\HX711/HX711.h:605:1: error: missing terminating ' character

^

C:\Users\kkozo\Documents\Arduino\libraries\HX711/HX711.h:625:69: error: stray '#' in program

     <td id="LC1" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">ifndef</span> HX711_h</td>

                                                                 ^

C:\Users\kkozo\Documents\Arduino\libraries\HX711/HX711.h:629:69: error: stray '#' in program

     <td id="LC2" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">HX711_h</span></td>

                                                                 ^

C:\Users\kkozo\Documents\Arduino\libraries\HX711/HX711.h:638:69: error: stray '#' in program

     <td id="LC4" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">if</span> ARDUINO &gt;= 100</td>

                                                                 ^

C:\Users\kkozo\Documents\Arduino\libraries\HX711/HX711.h:642:69: error: stray '#' in program

     <td id="LC5" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&quot;</span>Arduino.h<span class="pl-pds">&quot;</span></span></td>

                                                                 ^

from esp8266_and_arduino.

chaeplin avatar chaeplin commented on June 16, 2024
  1. HX711(byte dout, byte pd_sck, byte gain = 128);
    --> out to 4, sick to 5(4, 5 is not fixed, can use other pins)
  2. esp vcc(3.3) to vcc of hx711, and esp gnd to gnd of hx711
  3. looks like download err to me. How do you download hx711 library ?

from esp8266_and_arduino.

kozoke avatar kozoke commented on June 16, 2024

from esp8266_and_arduino.

chaeplin avatar chaeplin commented on June 16, 2024

download https://github.com/bogde/HX711 and unzip it.
Find Arduino library folder, move unzipped lib to that folder.

https://www.youtube.com/watch?v=tcpE19KaKis
https://www.youtube.com/watch?v=Zdxz3YUd1S8

from esp8266_and_arduino.

kozoke avatar kozoke commented on June 16, 2024

Solved. I went through and blew away all remants of anything hx711 in the libraries/scripts. Downloaded the Bogde and tried that. I also recall something about pin assignments so I added this to the code: (and changed the .ino pins to 4 for data, 5 for clock)


#ifndef Pins_Arduino_h
#define Pins_Arduino_h

#include "../generic/common.h"

static const uint8_t SDA = 4;
static const uint8_t SCL = 5;

static const uint8_t LED_BUILTIN = 16;
static const uint8_t BUILTIN_LED = 16;

static const uint8_t D0 = 16;
static const uint8_t D1 = 5;
static const uint8_t D2 = 4;
static const uint8_t D3 = 0;
static const uint8_t D4 = 2;
static const uint8_t D5 = 14;
static const uint8_t D6 = 12;
static const uint8_t D7 = 13;
static const uint8_t D8 = 15;
static const uint8_t D9 = 3;
static const uint8_t D10 = 1;

#endif /* Pins_Arduino_h */


And, it kinda worked but was getting a reading but also a stack error.

So, I tried this one (simple scale - which seemed to work before).
https://github.com/queuetue/Q2-HX711-Arduino-Library
And it worked! Responded well to changes in load sensor pressure!!! So, it was a library problem or more likely a pin assignment.

Thanks again for your help patience and support. I hope this helps someone else in the future.

from esp8266_and_arduino.

chaeplin avatar chaeplin commented on June 16, 2024

@kozoke Oh great. Thanks for info on new lib.

from esp8266_and_arduino.

broskunta avatar broskunta commented on June 16, 2024

@kozoke Please can I see a sample code that worked. I am having issues setting up the ESP8266 to work with the HX711 library.
Thanks.

from esp8266_and_arduino.

kozoke avatar kozoke commented on June 16, 2024

from esp8266_and_arduino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.