Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ESP8266 , need help
08-24-2015, 12:59 PM (This post was last modified: 08-24-2015 01:08 PM by gabe.)
Post: #11
RE: ESP8266 , need help
It's simply missing those TX functions, can not be found anywhere in libraries.
if ring buffer is all we need here, why not just modify Arduino HardwareSerial to fit it?
Find all posts by this user
Quote this message in a reply
08-24-2015, 07:34 PM
Post: #12
RE: ESP8266 , need help
Problem solved! I was my fault, sorry Angel I forgot to update the JJROBOTS_OSC.h on OSC library in the github repository.
Please update your JJROBOTS_OSC library from GitHub or use the files attached here.
The definition of the Serial1_xxx functions are in JJROBOTS_OSC.h file. The functions are implemented on the .cpp file.
We decide to "rewrite" this Serial1 functions because the default arduino library discard new messages when serial RX buffer is full. For this aplication, we need to discard OLD messages when buffer is full. (described on library header)
Yes, we could rewrite the arduino core files (HardwareSerial1.cpp) but we prefered to not modify the arduino core files because users could run other projects with different needs... So this "special" implementation of the serial RX buffer only affects the BROBOT code.

Please try it, and let us know if it works ok...
Jose.


Attached File(s)
.zip  JJROBOTS_OSC.zip (Size: 4.27 KB / Downloads: 50)
Find all posts by this user
Quote this message in a reply
08-24-2015, 08:51 PM
Post: #13
RE: ESP8266 , need help
Compilation is now ok for me.
Not yet tested on robot.

Thanks !
Patrick
Find all posts by this user
Quote this message in a reply
08-25-2015, 02:00 AM (This post was last modified: 08-25-2015 02:29 AM by gabe.)
Post: #14
RE: ESP8266 , need help
Now ESP8266 works except password "12345678" become "A6345678".

and how to make both fader back to zero automaticly. at current setting when I let go my finger to hit the Zero push button, Robot will run fast and run into things and fall.
Find all posts by this user
Quote this message in a reply
08-25-2015, 03:56 AM
Post: #15
RE: ESP8266 , need help
(08-24-2015 07:34 PM)JoseJulio Wrote:  Problem solved! I was my fault, sorry Angel I forgot to update the JJROBOTS_OSC.h on OSC library in the github repository.
Please update your JJROBOTS_OSC library from GitHub or use the files attached here.
The definition of the Serial1_xxx functions are in JJROBOTS_OSC.h file. The functions are implemented on the .cpp file.
We decide to "rewrite" this Serial1 functions because the default arduino library discard new messages when serial RX buffer is full. For this aplication, we need to discard OLD messages when buffer is full. (described on library header)
Yes, we could rewrite the arduino core files (HardwareSerial1.cpp) but we prefered to not modify the arduino core files because users could run other projects with different needs... So this "special" implementation of the serial RX buffer only affects the BROBOT code.

Please try it, and let us know if it works ok...
Jose.

Posting in this thread is my first ever post in a forum so forgive me if my forum etiquette isn't proper. What I do know isn't proper is how my first post was asking about a problem I encountered rather than commending the author of this project on such an amazing job.
Although Im not that great at writing or debugging code (especially libraries) I have enough knowledge to understand the magical implementation that has gone into this work. I have probably seen every code posted for balancing robots on the internet but this is the first one that really inspired me to build one.
I have scratch built a 3d printer that runs marlin and scratch built a quadcopter that runs on mission planner both of which have a huge number of contributors to the projects. From my understanding this project was done by one or two people! That amazes me!!
The only thing missing I know of is a DONATE button for those of us who want to scratch build this project but still want to contribute to give thanks for the info, and ensure you have incentive to post your future ingenious projects.

THANKS, PAUL
Find all posts by this user
Quote this message in a reply
08-25-2015, 08:32 AM
Post: #16
RE: ESP8266 , need help
(08-20-2015 07:35 PM)sasa999 Wrote:  ..this is not latest - I found simpler way for robot control without STOP button . Just little sketch changes and robot stop when you lift your finger from OSC slider. Will ttest at weekend Smile

How does Arduino get to know when user finger is off from OSC slider? this sketch changes are made on Ardoino or OSC apps?
is it working now? it is bothering me and still can't figuring out how to solve this problem.
Find all posts by this user
Quote this message in a reply
08-25-2015, 09:13 AM
Post: #17
RE: ESP8266 , need help
In osc app you can check option for sending touch command like /1/fadder1/z. Letter z is key for recognising finger touch in Arduino sketch. I tested this and it work fine. I will post some video at evening. It is much more confortable control robot in this way.
Find all posts by this user
Quote this message in a reply
08-25-2015, 09:41 AM (This post was last modified: 08-25-2015 10:05 AM by JJrobots JP.)
Post: #18
RE: ESP8266 , need help
(08-25-2015 09:13 AM)sasa999 Wrote:  In osc app you can check option for sending touch command like /1/fadder1/z. Letter z is key for recognising finger touch in Arduino sketch. I tested this and it work fine. I will post some video at evening. It is much more confortable control robot in this way.

Sasa (and all),
Thanks for your contributions. They are very welcome. Jose and me are quite overwhelmed right now working on the new projects.
Visit this user's website Find all posts by this user
Quote this message in a reply
08-25-2015, 01:05 PM
Post: #19
RE: ESP8266 , need help
We have invested a lot of time on this project so Thanks for your words, Paul!!

Jose

(08-25-2015 03:56 AM)Paulnea Wrote:  
(08-24-2015 07:34 PM)JoseJulio Wrote:  Problem solved! I was my fault, sorry Angel I forgot to update the JJROBOTS_OSC.h on OSC library in the github repository.
Please update your JJROBOTS_OSC library from GitHub or use the files attached here.
The definition of the Serial1_xxx functions are in JJROBOTS_OSC.h file. The functions are implemented on the .cpp file.
We decide to "rewrite" this Serial1 functions because the default arduino library discard new messages when serial RX buffer is full. For this aplication, we need to discard OLD messages when buffer is full. (described on library header)
Yes, we could rewrite the arduino core files (HardwareSerial1.cpp) but we prefered to not modify the arduino core files because users could run other projects with different needs... So this "special" implementation of the serial RX buffer only affects the BROBOT code.

Please try it, and let us know if it works ok...
Jose.

Posting in this thread is my first ever post in a forum so forgive me if my forum etiquette isn't proper. What I do know isn't proper is how my first post was asking about a problem I encountered rather than commending the author of this project on such an amazing job.
Although Im not that great at writing or debugging code (especially libraries) I have enough knowledge to understand the magical implementation that has gone into this work. I have probably seen every code posted for balancing robots on the internet but this is the first one that really inspired me to build one.
I have scratch built a 3d printer that runs marlin and scratch built a quadcopter that runs on mission planner both of which have a huge number of contributors to the projects. From my understanding this project was done by one or two people! That amazes me!!
The only thing missing I know of is a DONATE button for those of us who want to scratch build this project but still want to contribute to give thanks for the info, and ensure you have incentive to post your future ingenious projects.

THANKS, PAUL
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)