Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bpod stand alone system
#1
Hey guys,

I'm putting together a rig and am required to use a MAC. I've read through the trials and tribulations with MACs and USBs, and saw that it isn't maintained. I've also seen the pyBpod (and am looking at this in parallel).

Now to my question: I'd like to try to run Bpod as a stand-alone system, like any arduino-based system: ie if channel 1 is high, open valve 1, if channel 2, open valve 2, listen for a capasitive sensor - set high channel 5 etc.

I started looking through the firmware code (which is essentially numerous arduino sketches) and it is a monster of code. Tt looks like you've added a shield that can up the voltage for the solenoids (5 to 12 v) and communicate via ethernet. 

I have a couple Bpod r0.7's and a couple 'port interface + valve's and I'm going to try to adapt the firmware to listen to certain ports and turn off other ports. 

Question: Is there a breakdown of what arduino ports control corresponding devices? For instance when I click valve 1 in the Matlab gui; is the PC turning on an Arduino Due channel that activates the valve? I'm so hoping this is the case because it'll make 'hacking' it so much easier.
Reply
#2
Hi Travis,

I don't have a pinout posted for the Due in 0.7 - but you can get the wiring information from the Eagle files for the board (in the Bpod-CAD repo, here).
As a student, you can get Eagle for free from here.
Using the "eye" tool (top row in the tool bar), in the board layout editor, you can click on the trace leaving an Arduino pin, to see what it is connected to.

-Josh
Reply
#3
Actually, no need to play with Eagle; the firmware file has the pin map.
See the section labeled:
Code:
////////////////////////////////////////
// State machine hardware description  /
////////////////////////////////////////
Reply
#4
(05-17-2018, 03:23 AM)Josh Wrote: Actually, no need to play with Eagle; the firmware file has the pin map.
See the section labeled:
Code:
////////////////////////////////////////
// State machine hardware description  /
////////////////////////////////////////

Thank you Josh, I'll definitely check that out!! And sorry for the late reply, I assumed I'd get an email or something when my post was replied to, but I must've setup my account on here wrong or something. I'll check out your diagram and get back to you!!

Travis
Reply


Forum Jump: