A data plotter class for JUCE

Recently one of my colleges asked for a facility to be able to graph/plot various collected/calculated data in JUCE C++ native code. I did a quick search, and I was not able to find one so I decided to write a very (very) simple data plotter class (i.e. ArazGraph) Check it out: https://github.com/arabed/ArazGraph

These are some of the sample screenshots of the data plotter:

Screenshot 1

Screenshot 2

Setup OBEX Server on Raspberry Pi 3

Just got my Raspberry Pi 3 and I like to get the Bluetooth going on it. I’m planning to use my Raspberry Pi 3 as an ‘obexpush’ server. I like to achieve this by using the command line only. This will help me to get everything I need in a startup bash script so that after every power cycle the Raspberry Pi 3 will be available for the intended operation.
Before starting to work on Raspberry Pi 3 it is a good idea to make sure we are using the latest software. Using an ssh shell and update to the latest software:

sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
sudo rpi-update
sudo reboot

Lets make sure we have the up to date Bluetooth software:

sudo apt-get install pi-bluetooth

I like to have d-feet (The dbus debugging utility https://github.com/GNOME/d-feet) handy as well:

sudo apt-get install d-feet

Now lets get the Bluetooth going:

sudo service bluetooth stop
sudo bluetoothd --compat &
sudo obexpushd -B -n -o /home/pi/push_files &
sudo hciconfig hci0 up

Let’s run the following bash script so that the Bluetooth adapter will be up and running:

#!/bin/bash
bluetoothctl << EOF
power on
discoverable on
agent on
default-agent
EOF

Now lets configure the device (I’m not sure how to resolve all of the below issues):

1. How to change the Pi 3 Bluetooth device name

sudo hciconfig hci0 name 'ArazPi'

2) How to add a “pin” so that any device that wants to pair with Pi 3 have to use this pin
3) How to make all there changes in a batch file and have it run every time after booting up the device

Rosemont 8th Grade Useful Links

Rosemont

http://www.rosemontweb.org

Rosemont Science Department

https://sites.google.com/a/gusd.net/rosemont-science/home

Resources

http://www.cde.ca.gov/be/st/ss/documents/sciencestnd.pdf

http://www.nextgenscience.org/california

http://www.cde.ca.gov/re/cc/

Rosemont Math

http://www.rosemontmath.com/

http://www.yourhomework.com (Algebra #74594)

Rosemont English

http://www.corestandards.org/ELA-Literacy

http://www.commoncoreworks.org

Installing Midnight Commander and Subversion on Beagle Bone Black running on Debian

1. SSH to the board using the “192.168.7.2” IP address (or any assigned address if there is any) use root and root for username and password. (In my case I had to make sure that I had the wired Ethernet connection available while I was doing this.)

2. I will use the following commands to update the various packages before starting to do the vnc related installation:

apt-get update
apt-get upgrade
apt-get dist-upgrade

3. Install the Midnight Commander “mc” package:

apt-get install

4. Install Subversion (SVN) Client

apt-get install subversion

How to setup VNC server on Beagle Bone Black (BBB) Debian OS

Before starting here I would recommend to go over some basic stuff. This is a very good blog to just do that.

Having a VNC server running on your Beagle Bone Black will give you the means to connect to the board’s graphical interface over IP connection, eliminating the need of using (micro) HDMI cable and dedicated HDMI capable monitor/TV.

This process works for both Beagle Bone Black Rev A and C hardware revisions, as long as they are running the Debian distribution recommended by Beagle Bone foundation (Check here for more information).

These are the steps I took to install and enable the vnc server on the Beagle Bone Black running on Debian distribution;

1. SSH to the board using the “192.168.7.2” IP address (or any assigned address if there is any) use root and root for username and password.

2. I will use the following commands to update the various packages before starting to do the vnc related installation:

apt-get update
apt-get upgrade
apt-get dist-upgrade

3. Now we can install the x11vnc

apt-get install x11vnc

4. Now lets run the x11vnc. Just remember to switch to “debian” user before doing that. Do the following steps

su debian
x11vnc -display :0 -forever

5. Now use a vnc viewer like Real VNC to connect to your Beable Bone Black on its IP address (e.g. 192.168.7.2) on the 5900 port.

Note that you have to do the “step 4” every time you restart your Beagle Bone Black. To add this a auto start process do the following steps:

I followed the recommended approach here. And I used the following commands for start and stop sections;

start)
echo "Starting x11vnc"
su -c "x11vnc -bg -o %HOME/.x11vnc.log.%VNCDISPLAY -display :0 -forever -nopw" debian
echo "x11vnc is alive"
;;
stop)
echo "Stopping x11vnc"
su -c "x11vnc -R disconnect:all" debian
su -c "x11vnc -R stop" debian
echo "x11vnc is dead"
;;