Sorry Rob.  What I meant by doing the opposite was that the ESP is a 
cheap, powerful 32-bit microcontroller and, as Sunish says, once you start 
using it, it becomes obvious that it's the only thing you need to quickly 
and easily implement some IoT projects.  So many (most!) of my recent 
projects have been based on the ESP alone.

   It doesn't handle real-time applications very well, though (unless you 
strip out the WiFi stack completely) and also has abysmal quiescent current 
and sleep capabilities (much worse than any PIC), so despite the low cost, 
it's not a universal solution.  So what I'm doing is the opposite in that 
I'm now using the ESP as the main microcontroller, but off-loading 
peripheral tasks to a PIC.

   An example would be a remote irrigation project I'm working on at the 
moment where I have a couple of flow sensors producing several hundred 
output pulses per second.  This is more than the ESP can handle (and 
greater accuracy than I need for this application), so I have a 12F1840 to 
handle the interrupts from each sensor and then each 1840 talks to the ESP 
via i2c, with a shared interrupt line so that the 1840s can request 
attention when needed (that's the master plan anyway ...it isn't actually 
working yet).

   Hope that makes more sense,

                             -John-


On Tuesday, 5 February 2019 02:42:28 UTC+9, Rob Jansen wrote:
>
> Hi all,
>
> Some comments. Yes you need a special board as to be able to the ESP 
> easily connect to it. You also need level shifters 3.3 V <--> 5V if your 
> PIC runs at 5 Volt since the ESP module only operates at 3.3 Volt.
>
> The reason for making this library (I will put it soon on GitHub since I 
> have done sufficient tests for now and it complies with the jallib 
> standard) is that you can just easily connect your PIC to Wifi. I do not 
> understand the remark of John doing the opposite but maybe I misread  your 
> answer. I just connect a PIC to this module so that you do not have to 
> bother about using the hardware on the ESP and just use the Wifi and do the 
> rest using the hardware on your PIC.
>
> About Jaluino. I had a look at the website of Sebastian and he did a great 
> job but - or I missed it - I would like to take it one step further. I want 
> to design a  board with 2 PICs on it so that you can program it with board 
> itself without the need of a programmer. The latter is I think also a 
> reason that people like Arduino since you just connect it to your USB and 
> it works. That should be the same for the Jaluino I think. If somebody has 
> already designed it that would be great.
>
> So I will post the library soon for anybody who wants to use his PIC to 
> make an IoT device without the hassle of understanding the AT command set 
> and/or to find out which commands you need to control the ESP board to get 
> you connected to the Wifi and to send data over it. You just get a library 
> with functions that does it all for you.
>
> Kind regards,
>
> Rob
>
>
> On Monday, February 4, 2019 at 3:19:40 PM UTC+1, hubidrei wrote:
>>
>> Why not the easy way?
>> I use ESP-Link on the esp to have a Serial WiFi Bridge. So i can connect 
>> it directly to any Serial port also on a PIC.
>> https://github.com/jeelabs/esp-link 
>>
>> Am Samstag, 2. Februar 2019 09:28:36 UTC+1 schrieb Rob Jansen:
>>>
>>> Hello all,
>>>
>>> I am working on a JAL library for using the esp8266 wifi module. It is 
>>> starting to work and I made some sample programs. It is still work in 
>>> progress and I need to clean up the documentation of the library. Once done 
>>> can post it on GitHub but I am wondering if it should be 
>>> checked/reviewed/tested by somebody to see if is all clear. What is the 
>>> normal procedure for doing this? Put it on the jallist forum?
>>>
>>> Kind regards,
>>>
>>> Rob
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/jallib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to