Recent Posts

Pages: [1] 2 3 ... 10
1
Support / Re: Pulse output in receiver
« Last post by Wayne on June 22, 2017, 08:37:33 AM »
Success..

I'm sure I can do this on the footswitch (send) side, but I have it working on the receiver side at the moment.

Aaron helped me with the sample, then I was able to insert it with changes to accomplish the goal.
I'm not to sure about the timing, but it looks close to what I need.

The Objective is to receive the signal (button send from the footswitch) and enable a relay (led) for x seconds (200ms roughly).
Do this once and not to repeat until the next signal was received.
Make sure the pulse is equal to 200ms no matter what length of the trigger.

Here is the code in the loop area of the receiver for the foot switch.
Code: [Select]

if (modeRecvd == 0 && button == 50) //case 50:
  {
    // mode
    modeRecvd = 1;
    lastRecvd = millis();
    Serial.println("mode");
    digitalWrite(mode_led, HIGH);
    digitalWrite(save_led, LOW);
    digitalWrite(xray_led, LOW);
    digitalWrite(HLF_led, LOW);
    digitalWrite(security_led, LOW);
   
  } else {
    if (modeRecvd == 1 && millis() - lastRecvd >= 130)
    {
      digitalWrite(mode_led, LOW);
      lastRecvd = millis();
      Serial.println(button);
      if (button == 69)
      {
        modeRecvd = 0;
      }
    }

It also works as a send (foot switch)

I had a hard time trying different ways of doing this.

2
Simblee Announcements / Re: Simblee for Mobile Android Version 1.1.3 is Live
« Last post by vondessss on June 22, 2017, 02:28:28 AM »
How i can find a free verson mobile recorder https://mobilerecorder24.com/call-record.html and simblee together?
3
Support / Re: Simblee MSL
« Last post by Tim on June 17, 2017, 10:06:18 PM »
A quick update ... We've now hand assembled 21 boards with 0% failure. These boards do not have pads for unused Simblee pins. We also assembled 3 boards that have pads for all Simblee pins with 0% failure. It's starting to look clear that moisture (i.e. not pre-baking before reflowing) has been the cause of our high failure rate. What a relief to have solved the mystery.

It's not clear to me if there's an advantage either way to keeping or removing pads on board for unused Simblee pins.

Thanks all for your contributions to this thread.

Tim
4
Simblee Libraries / Determining Battery Life
« Last post by LordOddEye on June 16, 2017, 11:53:43 AM »
Hello everyone,

I currently in the development of a product for my company and I am wondering if there is anyway to show the battery life using the Simblee Library.

I plan to store this value into a variable and then I can easily display that on the phone screen.

Thank you for your help

Regards
5
I had a similar problem testing a very simple code.
I connected a motor to gnd and GPio 1, on the led board.
The 3 shields are connected directly in the powerbook USB port.
I am getting error code" timeout UART..."

After looking at this thread, I removed the LED shield, loaded the code without problems using the USB and Simble BLE shields.
Then I connected the LED shield where the motor is hooked, and it works fine.

After verification, I see that people always use a transistor to shield the motor from the board. I am aware one reason is to avert putting too much current thru the Simblee, but there may be an other reason, given the inductance property of the motor...(or EMF)
6
Simblee Libraries / Re: Simblee COM Send and Receive
« Last post by LordOddEye on June 13, 2017, 08:00:51 AM »
OK thank you that solved the issue!
7
Simblee Libraries / Simblee Dual Mode
« Last post by LordOddEye on June 13, 2017, 08:00:20 AM »
Hello,

When using Simblee Dual Mode it seems the COM packets are only received when the phone is connected is there a way to make it so it sends regardless of the phone being connected?

Thank you!
8
Support / Simblee_systenOff();
« Last post by Wayne on June 12, 2017, 12:48:40 PM »
Does any know how fast wake up is on Simblee_systemOff(); is.. 
I thought it was over 100ms..  Like it to be around 30ms if possible.
Doing ULP delay now, but like to get into that DEEP SLEEP..
9
Simblee Libraries / Re: Simblee COM Send and Receive
« Last post by tolson on June 12, 2017, 09:30:18 AM »
The _onReceive functions are interrupt callbacks. Get in and get out! You can't have 1 second delays and large print statements. Just set some variable and/or flags in the _onReceive function and then deal with those in the main loop.
10
Simblee Libraries / Simblee COM Send and Receive
« Last post by LordOddEye on June 12, 2017, 07:21:54 AM »
Hello everyone,

I am dealing with two Simblee devices that need to Send and Receive data back and forth.

When programming this I experience a problem. The moment I begin to Send files the Recieve function will no longer work.

I am wondering how I can remedy this and work around the issue.

This is the two codes for the two devices:

Device 1:

Code: [Select]
#include "SimbleeCOM.h"

char sensor[] = {'S', 'U', 'C', 'C', 'E', 'S', 'S'};

void setup() {

    Serial.begin(9600);
  pinMode(30, OUTPUT);
pinMode(29, OUTPUT);
pinMode(28, OUTPUT);
digitalWrite(30, LOW);
digitalWrite(29, LOW);
digitalWrite(28, LOW);
  SimbleeCOM.begin();
}

void loop() {

  //SimbleeCOM.send(sensor, sizeof(sensor));

}

void SimbleeCOM_onReceive(unsigned int esn, const char *screen_send, int len, int rssi)
{
 
digitalWrite(30, HIGH);
delay(1000);
digitalWrite(30, LOW);
digitalWrite(29, HIGH);
delay(1000);
digitalWrite(29, LOW);
digitalWrite(28, HIGH);
delay(1000);
digitalWrite(28, LOW);

  for (int i = 0; i < len; i++)
    Serial.print(screen_send[i]);
  printf("\n");
}
 

Device 2:

Code: [Select]
#include "SimbleeCOM.h"

char screen_send[] = {'S', 'U', 'C', 'C', 'E', 'S', 'S'};

void setup() {

    Serial.begin(9600);
  SimbleeCOM.begin();
}

void loop() {
  //SimbleeCOM.send(initi, sizeof(initi));
  SimbleeCOM.send(screen_send, sizeof(screen_send));

}

void SimbleeCOM_onReceive(unsigned int esn, const char *sensor, int len, int rssi)
{

  for (int i = 0; i < len; i++)
    Serial.print(sensor[i]);
  printf("\n");
}


Pages: [1] 2 3 ... 10
anything