# Anyone possible make project

**URL:** <https://discourse.processing.org/t/anyone-possible-make-project/25109>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [November 1, 2020, 10:07am UTC](https://discourse.processing.org/t/anyone-possible-make-project/25109 "2020-11-01T10:07:41Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![r0x15](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@r0x15](https://discourse.processing.org/u/r0x15)\
**Post date:** [November 2, 2020, 10:17pm UTC](https://discourse.processing.org/t/anyone-possible-make-project/25109/21 "2020-11-02T22:17:57Z")

</div>

i paired from my device

---

<div class="post-metadata">

**Author:** ![RichardDL](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Post date:** [November 2, 2020, 10:44pm UTC](https://discourse.processing.org/t/anyone-possible-make-project/25109/22 "2020-11-02T22:44:38Z")

</div>

@svan I have data printing in the console window! 😃 I recognise the text but the protocol is different from yours, not a problem, easily fixed.

```auto
262,
*
P
1

```

---

<div class="post-metadata">

**Author:** ![r0x15](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@r0x15](https://discourse.processing.org/u/r0x15)\
**Post date:** [November 2, 2020, 11:04pm UTC](https://discourse.processing.org/t/anyone-possible-make-project/25109/23 "2020-11-02T23:04:45Z")

</div>

```auto
[/quote]

on bluethooth ?
```

---

<div class="post-metadata">

**Author:** ![RichardDL](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Post date:** [November 2, 2020, 11:47pm UTC](https://discourse.processing.org/t/anyone-possible-make-project/25109/24 "2020-11-02T23:47:53Z")

</div>

Yes, BlueTooth, I’m altering the program so it prints on the phone as well.

---

<div class="post-metadata">

**Author:** ![r0x15](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@r0x15](https://discourse.processing.org/u/r0x15)\
**Post date:** [November 2, 2020, 11:49pm UTC](https://discourse.processing.org/t/anyone-possible-make-project/25109/25 "2020-11-02T23:49:03Z")

</div>

I’m leaving for work tomorrow morning okay for Wednesday ok.  
now i see some for the hc-06 then i go to bed  
now thanks night

---

<div class="post-metadata">

**Author:** ![r0x15](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@r0x15](https://discourse.processing.org/u/r0x15)\
**Post date:** [November 3, 2020, 12:02am UTC](https://discourse.processing.org/t/anyone-possible-make-project/25109/26 "2020-11-03T00:02:18Z")

</div>

> [@RichardDL](#):
>
> Yes, BlueTooth, I’m altering the program so it prints on the phone as well.

si funziona!!! via bluetooth legge l’encoder!!!

---

<div class="post-metadata">

**Author:** ![RichardDL](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Post date:** [November 21, 2020, 10:52am UTC](https://discourse.processing.org/t/anyone-possible-make-project/25109/27 "2020-11-21T10:52:14Z")

</div>

Hi @svan, I’ve been adjusting your program, learning what’s there and making it auto-connect to an Arduino+HC05 of mine. A few comments:

- Whatever I did with the baud control didn’t make any difference. So I deleted all the ‘baud’ items and code, and it works as well as before. I think there is no baud rate on a BT link.

- Where your program reads the incoming bytes I added ‘if available’ and a delay while nothing has arrived. Another delay before reading to ensure I get the whole line as sent.

```auto
        if (mmInStream.available() > 60) 
        {
          delay(200); // allow the rest of the line to arrive
          bytes = mmInStream.read(buffer);
          String inStr = new String(buffer, 0, bytes);
          print(inStr);
          dataStr = dataStr + inStr;
          // To do - interpret the arrived string into values
        } 
        else 
        {
          // if nothing arrived, wait a moment.
          delay(100);
        }

```

That print(inStr) actually does a println(inStr) on the console. Never mind, it’s pretty amazing that you can have a console on the PC from a program running in the phone.

- Building the program is quite slow, 90 seconds to compile and run.

Anyway, it’s awesome as they say, another really useful tool to connect things, thanks again.

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [November 21, 2020, 3:16pm UTC](https://discourse.processing.org/t/anyone-possible-make-project/25109/28 "2020-11-21T15:16:02Z")

</div>

Thank you for taking the time to look at the code and for your constructive comments. The feedback is much appreciated.

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [November 21, 2020, 5:06pm UTC](https://discourse.processing.org/t/anyone-possible-make-project/25109/29 "2020-11-21T17:06:54Z")

</div>

> - Building the program is quite slow, 90 seconds to compile and run.

Noel swears by APDE to make code compile faster (he uses a PC). I’m using a Mac and it has never worked that well for me (likely because I don’t know how to use it). It possibly could help you if you haven’t already tried it.

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [November 22, 2020, 4:29pm UTC](https://discourse.processing.org/t/anyone-possible-make-project/25109/30 "2020-11-22T16:29:29Z")

</div>

> [@svan](#):
>
> Noel swears by APDE to make code compile faster (he uses a PC)

I want to make clear that I use a PC only for editing the pde file.  
I use in conjunction an app on my phone and a chrome extension both called Pigeon, that share the clipboard content from both phone and PC. So, in no time, just by copying and pasting the clipboard, I can run my sketch on my phone with the APDE app in 4, 5 seconds. (If in preview mode). There are similar clipboard apps, and also for Mac & Android like [Alt-C.](https://www.makeuseof.com/tag/apps-android-mac-continuity/)

[Previous page](https://discourse.processing.org/t/anyone-possible-make-project/25109.md?page=1)
