nordcupp
Posts: 4
Joined: Mon Jul 28, 2014 2:10 pm

Boardcomputer for a Motorcycle

Mon Jul 28, 2014 2:16 pm

Hi there,

I need someone who is skilled with Raspberry and wants to join me on a Project to develop
a boardcomputer for a motorcycle.

there is a lamba sensor and a temperature sensor that musst be read and displayed
on an android phone.

If someone can give help, tipps or assistence, I'd be very happy.

BMS Doug
Posts: 3823
Joined: Thu Mar 27, 2014 2:42 pm
Location: London, UK

Re: Boardcomputer for a Motorcycle

Mon Jul 28, 2014 3:40 pm

Hi Nordcupp,

The first step is to identify your components, are you connecting existing sensors or fitting new ones (I'm guessing that you are connecting existing but its best to specify):
lamba sensor: voltage output between 0.2-0.8Vdc (is this true for your sensor?) connect to pi by an ADC along with a 1v reference.
temperature sensor : what output type? probably connect using a 2nd ADC.

a few questions for you to consider:
How frequently do you want to sample the sensors?
Do you want to record the samples?
How will you power the Pi? (how will you handle shutting down?)
How do you want to connect to the Android device? (you could use a WIFI connection and have the Pi setup as a webserver, with a webpage showing your sensors)
Doug.
Building Management Systems Engineer.

nordcupp
Posts: 4
Joined: Mon Jul 28, 2014 2:10 pm

Re: Boardcomputer for a Motorcycle

Tue Jul 29, 2014 1:07 pm

"The first step is to identify your components"

Every Sensor is different, and Motorcycles may have different Sensor installed already.
In my case there is no sensor installed, so I can choose as I like.
Important is that the raspberry is able to read the signal.
Examples would be:

Lamda Sensor,
Ignition cable Sensor
Temperature Sensor (sometimes multiple)
Fueltank sensor
speedsensor
Battery charge Sensor

Maybe Resistor or Amphere measurement would be cool too,
which enables you to find broken lights.
(this is absolute optional)

as well as the intern sensors of the smartphone.

in all these cases you have some voltage that must be read
only the delta for reading is different:

"How frequently do you want to sample the sensors?"
Lamda Sensor, 1/10s
temperature Sensor 1s
Fueltank sensor 60s
speedsensor 10s
Battery charge Sensor 60s

these sensor data should be stored on the SD Card for further examination
because now some cool things can be done:

using GPS and Ignition signal it is possible to calculate
Torque and Power as well as measuring in which gear you are.
using these info plus lamda sensor you will have a good info
which adjustments of the carburateur have to be done.
(the carb is a complex thing to adjust)
and the temperature sensor will save your engine if you go too hot.
there are different possibilites to measure temperature for the engine so
multiple.

Important is to make this setup flexible to adjust/add sensors if necessary.
All info should be send through USB or bluetooth to the Android phone,
(I may have someone who can program a GUI) to visualize and calculate
the data.
I would then create Audio signals like
"Warning: Tank is on 20%" or
"Warning Engine is melting"

Using ADC to make the signals readable for the raspberry sounds eligible.

"Do you want to record the samples?"
yes, to get derivated numbers.

"How will you power the Pi? (how will you handle shutting down?)"
Either through 12V DC Battery (my case)
or using the lightengine of the motorcycle converted to DC
+ a capacitor

actually I dont know how to shut it down properly.
If controlled by bluethooth it will be necessary though to
hold it in sleep mode by battery right?



"How do you want to connect to the Android device? (you could use a WIFI connection and have the Pi setup as a webserver, with a webpage showing your sensors)"

USB connetor would be cool, since the Phone has to enable bluetooth, WIFI, GPS, and HSDPA at the same time.
My first idea was to power raspberry via battery and the phone via raspberry but that seem not to work out.
Right now I guess 2 USB Connectors coming from the Battery to each power up Phone and Raspberry is the right solution.

Monitoring The Details on a Website sounds very awesome, because this way you can have all info directly on your computer
or post it online. Also a website is much easier to develop I guess.
(GUI, Diagrams, Testprograms etc...)

Thanks for your effort.

rgrbic
Posts: 128
Joined: Thu Jun 12, 2014 1:07 pm
Contact: Website

Re: Boardcomputer for a Motorcycle

Tue Jul 29, 2014 6:28 pm

Sounds like interesting projects.
Since you will have different signals (several require ADC, there will be pulse counting, different on/off signals) I suggest you to make additional board with some microcontroller which will sample all necessary signals and send the readings to the Raspberry Pi.
At 127.0.0.1
Twitter: @rgrbic
IoT-projects.com

nordcupp
Posts: 4
Joined: Mon Jul 28, 2014 2:10 pm

Re: Boardcomputer for a Motorcycle

Tue Jul 29, 2014 9:16 pm

good thought.

I got someone who can do these platines...

Duane Degn
Posts: 55
Joined: Thu Jul 10, 2014 6:30 am
Location: Idaho, USA

Re: Boardcomputer for a Motorcycle

Tue Jul 29, 2014 10:57 pm

nordcupp wrote:I got someone who can do these platines...
Is "plantines" a person? Is this a typo? I don't understand what the above quote means.

Is there a reason why you want to use the Raspberry Pi? What you've described so far sounds like a better fit for a good microcontroller. As rgrbic mentioned, you'll probably want to use a microcontroller even if you do use the Pi and depending on the microcontroller used, you might not even need the Pi. The smart phone could do any of the number crunching needed.

If you already know how to use the Pi, then it's not a bad idea, but if you're starting from scratch, I'm not sure why the Pi is your first choice.

nordcupp
Posts: 4
Joined: Mon Jul 28, 2014 2:10 pm

Re: Boardcomputer for a Motorcycle

Wed Jul 30, 2014 12:38 am

actually i am starting from scratch.
I didn't know that a microcontroller can be easily plugg via usb or WIFI to the android phone...
that is something necessary. My impression was, that the raspberry would be a great help.
getting the connection to the Android phone.

and sorry for that platine thing. platine is german for board.
what I tried to say is that someone can assemble a microntroller board for me.

rgrbic
Posts: 128
Joined: Thu Jun 12, 2014 1:07 pm
Contact: Website

Re: Boardcomputer for a Motorcycle

Wed Jul 30, 2014 7:34 am

Well,you can do it with the following components:
- some microcontroller (like atmega328) with additional circuitry (switch, crystal, step down converter, ...)
- bluetooth module which connects via UART to microcontroller and is used for communication with mobile phone
- circuitry for sensor signal conditioning (if nececessary)
- pcb terminal blocks for simple sensor connecting
- real time clock (to add time stamp to each reading)
- sd card writer which connects to microcontroller SPI and is used for storing sensor readings (optional, you can store the readings to the mobile phone memory)
At 127.0.0.1
Twitter: @rgrbic
IoT-projects.com

Return to “Automation, sensing and robotics”